Skip to content

Commit 04bd543

Browse files
authored
gh-146386: fix missing va_end in _abiinfo_raise in modsupport.c (#146387)
1 parent 4240c7d commit 04bd543

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/modsupport.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,9 +688,12 @@ static int _abiinfo_raise(const char *module_name, const char *format, ...)
688688
va_list vargs;
689689
va_start(vargs, format);
690690
if (_PyUnicodeWriter_FormatV(writer, format, vargs) < 0) {
691+
va_end(vargs);
691692
PyUnicodeWriter_Discard(writer);
692693
return -1;
693694
}
695+
696+
va_end(vargs);
694697
PyObject *message = PyUnicodeWriter_Finish(writer);
695698
if (!message) {
696699
return -1;

0 commit comments

Comments
 (0)