summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-09-10 11:17:23 (GMT)
committerChristian Heimes <christian@cheimes.de>2012-09-10 11:17:23 (GMT)
commit879329d66ed3ab16e33636355b8b26643ae26251 (patch)
treee70ac6b0ff8674a7a917de01f6d24be044a78e93
parentf4f9939a96ed09cee5a73fd40a040e381dbdf6f1 (diff)
parent48d8d2143867fa7027499146dd69f879e92a1d5d (diff)
downloadcpython-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.c1
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;