[Python-3000-checkins] r55598 - python/branches/p3yk/Objects/abstract.c
neal.norwitz
python-3000-checkins at python.org
Sat May 26 04:44:18 CEST 2007
Author: neal.norwitz
Date: Sat May 26 04:44:02 2007
New Revision: 55598
Modified:
python/branches/p3yk/Objects/abstract.c
Log:
Fix refleak on infinite recursion
Modified: python/branches/p3yk/Objects/abstract.c
==============================================================================
--- python/branches/p3yk/Objects/abstract.c (original)
+++ python/branches/p3yk/Objects/abstract.c Sat May 26 04:44:02 2007
@@ -2139,8 +2139,10 @@
if (checker != NULL) {
PyObject *res;
int ok = -1;
- if (Py_EnterRecursiveCall(" in __instancecheck__"))
+ if (Py_EnterRecursiveCall(" in __instancecheck__")) {
+ Py_DECREF(checker);
return ok;
+ }
res = PyObject_CallFunctionObjArgs(checker, inst, NULL);
Py_LeaveRecursiveCall();
Py_DECREF(checker);
More information about the Python-3000-checkins
mailing list