commit | 30b78048a670bc2a97f28d468d4239cc9a843673 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Thu Dec 20 21:03:02 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Thu Dec 20 21:03:02 2007 +0000 |
tree | b7829c867a0c948496182cb0fa60d0daa169c47d | |
parent | e9a0e885db9b731a47e8c89204db0a6901de237e [diff] [blame] |
Fix refleak introduced in r59576.
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 74a00b1..e790c04 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c
@@ -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) {