From: Michael W. Hudson Date: Fri, 15 Aug 2003 13:03:30 +0000 (+0000) Subject: Fix silly leak in test used in test_exceptions. X-Git-Tag: v2.4a1~1737 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f02bcee095bf0343b9871fd28cf2d580337c599a;p=python Fix silly leak in test used in test_exceptions. --- diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index fd16d5fa40..9a5d885434 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -544,6 +544,7 @@ raise_exception(PyObject *self, PyObject *args) PyTuple_SET_ITEM(exc_args, i, v); } PyErr_SetObject(exc, exc_args); + Py_DECREF(exc_args); return NULL; }