Skip to content

Commit 2999783

Browse files
committed
add missing var_end calls at exit points
1 parent a57209e commit 2999783

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)