mirror of https://github.com/python/cpython
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);
|
||||
}
|
||||
else {
|
||||
Py_XDECREF(func); /* may be None */
|
||||
PyErr_Clear();
|
||||
func = lookup_method(self, "__eq__", &eq_str);
|
||||
if (func == NULL) {
|
||||
|
|
Loading…
Reference in New Issue