summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-24 13:08:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-24 13:08:16 (GMT)
commitab5dae35ca5d64cf08c2a48105af4f92dd53b27d (patch)
tree290138cc34bd828e083a218f2d28e3d9632a66bb /Objects
parent563d12d145dff15745780929149352d269bcb49f (diff)
downloadcpython-ab5dae35ca5d64cf08c2a48105af4f92dd53b27d.zip
cpython-ab5dae35ca5d64cf08c2a48105af4f92dd53b27d.tar.gz
cpython-ab5dae35ca5d64cf08c2a48105af4f92dd53b27d.tar.bz2
Fix SF bug 572567: Memory leak in object comparison.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 47613f5..2beb3b3 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;