[Python-checkins] cpython (merge 3.2 -> default): Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
christian.heimes
python-checkins at python.org
Mon Sep 10 13:19:26 CEST 2012
http://hg.python.org/cpython/rev/29abedd4f4bb
changeset: 78950:29abedd4f4bb
parent: 78947:a3e194661b5f
parent: 78949:71e854617297
user: Christian Heimes <christian at cheimes.de>
date: Mon Sep 10 13:17:23 2012 +0200
summary:
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
files:
Python/getargs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Python/getargs.c b/Python/getargs.c
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -1742,6 +1742,7 @@
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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list