]> 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 a6cebbc75d1843c223105b8b4e66d0716d43ddd0..81a27217bb5b4a8079fec1f57e4c91e0f56d46b0 100644 (file)
@@ -1837,6 +1837,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;