diff Python/getargs.c @ 78951:aa804ef5a6ca 2.7

Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
author Christian Heimes <christian@cheimes.de>
date Mon, 10 Sep 2012 13:16:45 +0200
parents 17c671529f7e
children
line wrap: on
line diff
--- a/Python/getargs.c	Mon Sep 10 03:08:46 2012 +0200
+++ b/Python/getargs.c	Mon Sep 10 13:16:45 2012 +0200
@@ -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;