changeset 1456:13047948a989

cdefer: Removed memory leak.
author Marcel Keller <mkeller@cs.au.dk>
date Wed, 21 Jul 2010 15:06:52 +0200
parents e95a28d7df81
children 94fe7180f9bf
files viff/cdefer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/viff/cdefer.c	Tue Jul 20 16:39:42 2010 +0200
+++ b/viff/cdefer.c	Wed Jul 21 15:06:52 2010 +0200
@@ -658,7 +658,7 @@
                 continue;
 		*/
             }
-            Py_INCREF(self->result);
+
             if (PyObject_TypeCheck(self->result, &cdefer_DeferredType)) {
                 result = PyObject_CallMethod((PyObject *)self, "pause", NULL);
                 if (!result) {