From 30b78048a670bc2a97f28d468d4239cc9a843673 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 20 Dec 2007 21:03:02 +0000 Subject: [PATCH] Fix refleak introduced in r59576. --- Objects/typeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 74a00b1ba5c..e790c0486db 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) {