From f02bcee095bf0343b9871fd28cf2d580337c599a Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Fri, 15 Aug 2003 13:03:30 +0000 Subject: [PATCH] Fix silly leak in test used in test_exceptions. --- Modules/_testcapimodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index fd16d5fa40f..9a5d8854345 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; }