summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-12-20 21:03:02 (GMT)
committerGeorg Brandl <georg@python.org>2007-12-20 21:03:02 (GMT)
commit30b78048a670bc2a97f28d468d4239cc9a843673 (patch)
treeb7829c867a0c948496182cb0fa60d0daa169c47d
parente9a0e885db9b731a47e8c89204db0a6901de237e (diff)
downloadcpython-30b78048a670bc2a97f28d468d4239cc9a843673.zip
cpython-30b78048a670bc2a97f28d468d4239cc9a843673.tar.gz
cpython-30b78048a670bc2a97f28d468d4239cc9a843673.tar.bz2
Fix refleak introduced in r59576.
-rw-r--r--Objects/typeobject.c1
1 files changed, 1 insertions, 0 deletions
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 @@ slot_tp_hash(PyObject *self)
Py_DECREF(res);
}
else {
+ Py_XDECREF(func); /* may be None */
PyErr_Clear();
func = lookup_method(self, "__eq__", &eq_str);
if (func == NULL) {