Fix refleak introduced in r59576.
This commit is contained in:
parent
e9a0e885db
commit
30b78048a6
|
@ -4852,6 +4852,7 @@ slot_tp_hash(PyObject *self)
|
||||||
Py_DECREF(res);
|
Py_DECREF(res);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Py_XDECREF(func); /* may be None */
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
func = lookup_method(self, "__eq__", &eq_str);
|
func = lookup_method(self, "__eq__", &eq_str);
|
||||||
if (func == NULL) {
|
if (func == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue