[Python-checkins] cpython (2.7): Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
christian.heimes
python-checkins at python.org
Mon Sep 10 13:19:28 CEST 2012
http://hg.python.org/cpython/rev/aa804ef5a6ca
changeset: 78951:aa804ef5a6ca
branch: 2.7
parent: 78944:61446e56f683
user: Christian Heimes <christian at cheimes.de>
date: Mon Sep 10 13:16:45 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
@@ -1837,6 +1837,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