summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2003-08-15 13:03:30 (GMT)
committerMichael W. Hudson <mwh@python.net>2003-08-15 13:03:30 (GMT)
commitf02bcee095bf0343b9871fd28cf2d580337c599a (patch)
tree85c853a68b5bf4b60d85340714418e402c4db460 /Modules/_testcapimodule.c
parentda0a0673b18014559d321faae19f755a33c23d2a (diff)
downloadcpython-f02bcee095bf0343b9871fd28cf2d580337c599a.zip
cpython-f02bcee095bf0343b9871fd28cf2d580337c599a.tar.gz
cpython-f02bcee095bf0343b9871fd28cf2d580337c599a.tar.bz2
Fix silly leak in test used in test_exceptions.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index fd16d5f..9a5d885 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;
}