[Python-checkins] r59584 - python/trunk/Objects/typeobject.c

georg.brandl python-checkins at python.org
Thu Dec 20 22:03:03 CET 2007


Author: georg.brandl
Date: Thu Dec 20 22:03:02 2007
New Revision: 59584

Modified:
   python/trunk/Objects/typeobject.c
Log:
Fix refleak introduced in r59576.


Modified: python/trunk/Objects/typeobject.c
==============================================================================
--- python/trunk/Objects/typeobject.c	(original)
+++ python/trunk/Objects/typeobject.c	Thu Dec 20 22:03:02 2007
@@ -4852,6 +4852,7 @@
 		Py_DECREF(res);
 	}
 	else {
+		Py_XDECREF(func); /* may be None */
 		PyErr_Clear();
 		func = lookup_method(self, "__eq__", &eq_str);
 		if (func == NULL) {


More information about the Python-checkins mailing list