comparison 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
comparison
equal deleted inserted replaced
78947:a3e194661b5f 78950:29abedd4f4bb
1740 #endif 1740 #endif
1741 1741
1742 assert(min >= 0); 1742 assert(min >= 0);
1743 assert(min <= max); 1743 assert(min <= max);
1744 if (!PyTuple_Check(args)) { 1744 if (!PyTuple_Check(args)) {
1745 va_end(vargs);
1745 PyErr_SetString(PyExc_SystemError, 1746 PyErr_SetString(PyExc_SystemError,
1746 "PyArg_UnpackTuple() argument list is not a tuple"); 1747 "PyArg_UnpackTuple() argument list is not a tuple");
1747 return 0; 1748 return 0;
1748 } 1749 }
1749 l = PyTuple_GET_SIZE(args); 1750 l = PyTuple_GET_SIZE(args);