diff Modules/_testcapimodule.c @ 30158:4460979deebf legacy-trunk

Fix silly leak in test used in test_exceptions.
author Michael W. Hudson <mwh@python.net>
date Fri, 15 Aug 2003 13:03:30 +0000
parents bc4231eb2758
children 6858c2484010 1af7f719ed28
line wrap: on
line diff
--- a/Modules/_testcapimodule.c	Fri Aug 15 12:06:41 2003 +0000
+++ b/Modules/_testcapimodule.c	Fri Aug 15 13:03:30 2003 +0000
@@ -544,6 +544,7 @@
 		PyTuple_SET_ITEM(exc_args, i, v);
 	}
 	PyErr_SetObject(exc, exc_args);
+	Py_DECREF(exc_args);
 	return NULL;
 }