[Python-checkins] cpython (3.2): Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641

christian.heimes python-checkins at python.org
Mon Sep 10 13:19:25 CEST 2012


http://hg.python.org/cpython/rev/71e854617297
changeset:   78949:71e854617297
branch:      3.2
parent:      78943:ad3824a90261
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
@@ -1725,6 +1725,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