Commit 30b78048 authored by Georg Brandl's avatar Georg Brandl

Fix refleak introduced in r59576.

parent e9a0e885
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment