summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-09-10 11:16:45 (GMT)
committerChristian Heimes <christian@cheimes.de>2012-09-10 11:16:45 (GMT)
commit48d8d2143867fa7027499146dd69f879e92a1d5d (patch)
treea783ab69ce6dcd8da02381a4df448cb97e8fb31f /Python/getargs.c
parent837e53a7c268215bb521a5b0ce765367ca0704da (diff)
downloadcpython-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.c1
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;