mirror of
https://github.com/python/cpython.git
synced 2026-04-15 00:00:57 +00:00
gh-146386: fix missing va_end in _abiinfo_raise in modsupport.c (#146387)
This commit is contained in:
parent
4240c7dd74
commit
04bd54305a
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue