Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48d8d21

Browse files
committed
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
1 parent 837e53a commit 48d8d21

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
@@ -1725,6 +1725,7 @@ PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t m
17251725
assert(min >= 0);
17261726
assert(min <= max);
17271727
if (!PyTuple_Check(args)) {
1728+
va_end(vargs);
17281729
PyErr_SetString(PyExc_SystemError,
17291730
"PyArg_UnpackTuple() argument list is not a tuple");
17301731
return 0;

0 commit comments

Comments
 (0)