]> granicus.if.org Git - python/commitdiff
Fix silly leak in test used in test_exceptions.
authorMichael W. Hudson <mwh@python.net>
Fri, 15 Aug 2003 13:03:30 +0000 (13:03 +0000)
committerMichael W. Hudson <mwh@python.net>
Fri, 15 Aug 2003 13:03:30 +0000 (13:03 +0000)
Modules/_testcapimodule.c

index fd16d5fa40fbbcf6bd43743f3b53a0b08b442848..9a5d885434537cf810d78477667fd2c0468f345b 100644 (file)
@@ -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;
 }