diff options
author | Georg Brandl <georg@python.org> | 2007-12-20 21:03:02 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-12-20 21:03:02 (GMT) |
commit | 30b78048a670bc2a97f28d468d4239cc9a843673 (patch) | |
tree | b7829c867a0c948496182cb0fa60d0daa169c47d /Objects | |
parent | e9a0e885db9b731a47e8c89204db0a6901de237e (diff) | |
download | cpython-30b78048a670bc2a97f28d468d4239cc9a843673.zip cpython-30b78048a670bc2a97f28d468d4239cc9a843673.tar.gz cpython-30b78048a670bc2a97f28d468d4239cc9a843673.tar.bz2 |
Fix refleak introduced in r59576.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 74a00b1..e790c04 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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) { |