Skip to content

Commit d8edcb6

Browse files
committed
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
1 parent 8c1bce0 commit d8edcb6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/getargs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,6 +1837,7 @@ PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t m
18371837
assert(min >= 0);
18381838
assert(min <= max);
18391839
if (!PyTuple_Check(args)) {
1840+
va_end(vargs);
18401841
PyErr_SetString(PyExc_SystemError,
18411842
"PyArg_UnpackTuple() argument list is not a tuple");
18421843
return 0;

0 commit comments

Comments
 (0)