[Python-checkins] r52550 - python/trunk/Objects/dictobject.c

neal.norwitz python-checkins at python.org
Mon Oct 30 00:39:04 CET 2006


Author: neal.norwitz
Date: Mon Oct 30 00:39:03 2006
New Revision: 52550

Modified:
   python/trunk/Objects/dictobject.c
Log:
Fix refleak

Modified: python/trunk/Objects/dictobject.c
==============================================================================
--- python/trunk/Objects/dictobject.c	(original)
+++ python/trunk/Objects/dictobject.c	Mon Oct 30 00:39:03 2006
@@ -23,6 +23,7 @@
 	if (!tup)
 		return; /* caller will expect error to be set anyway */
 	PyErr_SetObject(PyExc_KeyError, tup);
+	Py_DECREF(tup);
 }
 
 /* Define this out if you don't want conversion statistics on exit. */


More information about the Python-checkins mailing list