diff Objects/typeobject.c @ 23968:e2fa741c547f 2.2

Fix SF Bug 572567: Memory leak in object comparison
author Raymond Hettinger <python@rcn.com>
date Mon, 24 Jun 2002 13:25:41 +0000
parents 4f0606ceeef8
children bec5b6610622
line wrap: on
line diff
--- a/Objects/typeobject.c	Mon Jun 24 02:29:57 2002 +0000
+++ b/Objects/typeobject.c	Mon Jun 24 13:25:41 2002 +0000
@@ -3177,6 +3177,7 @@
 			res = PyObject_Call(func, args, NULL);
 			Py_DECREF(args);
 		}
+		Py_DECREF(func);
 		if (res != Py_NotImplemented) {
 			if (res == NULL)
 				return -2;