diff options
author | Christian Heimes <christian@cheimes.de> | 2012-09-10 11:17:23 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-09-10 11:17:23 (GMT) |
commit | 879329d66ed3ab16e33636355b8b26643ae26251 (patch) | |
tree | e70ac6b0ff8674a7a917de01f6d24be044a78e93 | |
parent | f4f9939a96ed09cee5a73fd40a040e381dbdf6f1 (diff) | |
parent | 48d8d2143867fa7027499146dd69f879e92a1d5d (diff) | |
download | cpython-879329d66ed3ab16e33636355b8b26643ae26251.zip cpython-879329d66ed3ab16e33636355b8b26643ae26251.tar.gz cpython-879329d66ed3ab16e33636355b8b26643ae26251.tar.bz2 |
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
-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 9f72fa4..18c8e91 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; |