mirror of https://github.com/python/cpython
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
This commit is contained in:
commit
879329d66e
|
@ -1742,6 +1742,7 @@ PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t m
|
|||
assert(min >= 0);
|
||||
assert(min <= max);
|
||||
if (!PyTuple_Check(args)) {
|
||||
va_end(vargs);
|
||||
PyErr_SetString(PyExc_SystemError,
|
||||
"PyArg_UnpackTuple() argument list is not a tuple");
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue