From 48d8d2143867fa7027499146dd69f879e92a1d5d Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 10 Sep 2012 13:16:45 +0200 Subject: Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641 --- Python/getargs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/getargs.c b/Python/getargs.c index 0069671..a77bb05 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1725,6 +1725,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; -- cgit v0.12