From: Georg Brandl Date: Thu, 20 Dec 2007 21:03:02 +0000 (+0000) Subject: Fix refleak introduced in r59576. X-Git-Tag: v2.6a1~819 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30b78048a670bc2a97f28d468d4239cc9a843673;p=python Fix refleak introduced in r59576. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 74a00b1ba5..e790c0486d 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) {