diff options
| author | Christian Heimes <christian@cheimes.de> | 2012-09-10 13:17:23 +0200 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2012-09-10 13:17:23 +0200 |
| commit | a21256442adb92839047b2babaa64b0ef58d5131 (patch) | |
| tree | 79bea488ea8d2e51b4603fe1fa51c8accaf4f6b5 /Python | |
| parent | 10367eeb6c25d01264fc6ab40e95e6ba5bf6b9c2 (diff) | |
| parent | e0d06101862e06afb72d1836a250f1a1a66194e2 (diff) | |
| download | cpython-a21256442adb92839047b2babaa64b0ef58d5131.tar.gz | |
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/getargs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 9f72fa4ebf..18c8e91884 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -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; |
