comparison 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
comparison
equal deleted inserted replaced
78944:61446e56f683 78951:aa804ef5a6ca
1835 #endif 1835 #endif
1836 1836
1837 assert(min >= 0); 1837 assert(min >= 0);
1838 assert(min <= max); 1838 assert(min <= max);
1839 if (!PyTuple_Check(args)) { 1839 if (!PyTuple_Check(args)) {
1840 va_end(vargs);
1840 PyErr_SetString(PyExc_SystemError, 1841 PyErr_SetString(PyExc_SystemError,
1841 "PyArg_UnpackTuple() argument list is not a tuple"); 1842 "PyArg_UnpackTuple() argument list is not a tuple");
1842 return 0; 1843 return 0;
1843 } 1844 }
1844 l = PyTuple_GET_SIZE(args); 1845 l = PyTuple_GET_SIZE(args);