]> granicus.if.org Git - python/commitdiff
Fix refleak introduced in r59576.
authorGeorg Brandl <georg@python.org>
Thu, 20 Dec 2007 21:03:02 +0000 (21:03 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 20 Dec 2007 21:03:02 +0000 (21:03 +0000)
Objects/typeobject.c

index 74a00b1ba5c62068b71b20f4d4e2775bf6074fa3..e790c0486dbf9c30e5e4bcf7433229452e7c77ef 100644 (file)
@@ -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) {