diff options
author | Christian Heimes <christian@cheimes.de> | 2012-09-10 11:16:45 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-09-10 11:16:45 (GMT) |
commit | 48d8d2143867fa7027499146dd69f879e92a1d5d (patch) | |
tree | a783ab69ce6dcd8da02381a4df448cb97e8fb31f /Python/getargs.c | |
parent | 837e53a7c268215bb521a5b0ce765367ca0704da (diff) | |
download | cpython-48d8d2143867fa7027499146dd69f879e92a1d5d.zip cpython-48d8d2143867fa7027499146dd69f879e92a1d5d.tar.gz cpython-48d8d2143867fa7027499146dd69f879e92a1d5d.tar.bz2 |
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
Diffstat (limited to 'Python/getargs.c')
-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 0069671..a77bb05 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1725,6 +1725,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; |