commit | d8edcb65056d8301f9371d61e3322bb02b74540d | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Mon Sep 10 13:16:45 2012 +0200 |
committer | Christian Heimes <christian@cheimes.de> | Mon Sep 10 13:16:45 2012 +0200 |
tree | 961c9667df2f876606bd4c425c9ace55af1e3be2 | |
parent | 8c1bce00d25ddda20d4e760e5771324865ddae17 [diff] [blame] |
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
diff --git a/Python/getargs.c b/Python/getargs.c index a6cebbc..81a2721 100644 --- a/Python/getargs.c +++ b/Python/getargs.c
@@ -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;