diff Python/getargs.c @ 78949:71e854617297 3.2

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 91612618985b
children 38830281d43b 29abedd4f4bb
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
@@ -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;