Commit d8edcb65 authored by Christian Heimes's avatar Christian Heimes

Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641

parent 8c1bce00
...@@ -1837,6 +1837,7 @@ PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t m ...@@ -1837,6 +1837,7 @@ PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t m
assert(min >= 0); assert(min >= 0);
assert(min <= max); assert(min <= max);
if (!PyTuple_Check(args)) { if (!PyTuple_Check(args)) {
va_end(vargs);
PyErr_SetString(PyExc_SystemError, PyErr_SetString(PyExc_SystemError,
"PyArg_UnpackTuple() argument list is not a tuple"); "PyArg_UnpackTuple() argument list is not a tuple");
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment