mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
This commit is contained in:
parent
837e53a7c2
commit
48d8d21438
1 changed files with 1 additions and 0 deletions
|
@ -1725,6 +1725,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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue