]> granicus.if.org Git - python/commitdiff
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
authorChristian Heimes <christian@cheimes.de>
Mon, 10 Sep 2012 11:16:45 +0000 (13:16 +0200)
committerChristian Heimes <christian@cheimes.de>
Mon, 10 Sep 2012 11:16:45 +0000 (13:16 +0200)
Python/getargs.c

index 0069671d3c732d0bc241f836e9688fefeae12646..a77bb05529d2c36f2d38ec0531e194ac06830d4c 100644 (file)
@@ -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;