https://github.com/python/cpython/commit/04bd54305a548f817e1a4dba0dc20aab350ee6fc
commit: 04bd54305a548f817e1a4dba0dc20aab350ee6fc
branch: main
author: Brandon <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-03-25T18:24:08+05:30
summary:
gh-146386: fix missing `va_end` in `_abiinfo_raise` in `modsupport.c` (#146387)
files:
M Python/modsupport.c
diff --git a/Python/modsupport.c b/Python/modsupport.c
index 239c6c6a1b3bfa..4624f326d17b89 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -688,9 +688,12 @@ static int _abiinfo_raise(const char *module_name, const
char *format, ...)
va_list vargs;
va_start(vargs, format);
if (_PyUnicodeWriter_FormatV(writer, format, vargs) < 0) {
+ va_end(vargs);
PyUnicodeWriter_Discard(writer);
return -1;
}
+
+ va_end(vargs);
PyObject *message = PyUnicodeWriter_Finish(writer);
if (!message) {
return -1;
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]