Fix refleak introduced in r59576.

This commit is contained in:
Georg Brandl 2007-12-20 21:03:02 +00:00
parent e9a0e885db
commit 30b78048a6
1 changed files with 1 additions and 0 deletions

View 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) {