Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 78950:29abedd4f4bb
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Mon, 10 Sep 2012 13:17:23 +0200 |
| parents | 1700fb28d2ab 71e854617297 |
| children | c08bcf5302ec |
line wrap: on
line diff
--- a/Python/getargs.c Mon Sep 10 11:48:41 2012 +0200 +++ b/Python/getargs.c Mon Sep 10 13:17:23 2012 +0200 @@ -1742,6 +1742,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;
