diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-24 13:08:16 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-24 13:08:16 +0000 |
commit | 587729f193e42ac48562f4c17dbb58994fef4f12 (patch) | |
tree | 2778d99e72915fd8e19fd8dcbd9436b55c1185b2 /Objects | |
parent | 7d01911844d377121eca86da59020d0f43b98bae (diff) | |
download | cpython-587729f193e42ac48562f4c17dbb58994fef4f12.tar.gz |
Fix SF bug 572567: Memory leak in object comparison.
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 47613f51f2..2beb3b32a8 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -3286,6 +3286,7 @@ half_compare(PyObject *self, PyObject *other) res = PyObject_Call(func, args, NULL); Py_DECREF(args); } + Py_DECREF(func); if (res != Py_NotImplemented) { if (res == NULL) return -2; |