[Python-checkins] r68414 - in sandbox/trunk/io-c: _bufferedio.c _iobase.c

amaury.forgeotdarc python-checkins at python.org
Thu Jan 8 22:59:05 CET 2009


Author: amaury.forgeotdarc
Date: Thu Jan  8 22:59:05 2009
New Revision: 68414

Log:
kill two more causes of ref leaks


Modified:
   sandbox/trunk/io-c/_bufferedio.c
   sandbox/trunk/io-c/_iobase.c

Modified: sandbox/trunk/io-c/_bufferedio.c
==============================================================================
--- sandbox/trunk/io-c/_bufferedio.c	(original)
+++ sandbox/trunk/io-c/_bufferedio.c	Thu Jan  8 22:59:05 2009
@@ -358,6 +358,8 @@
         else
             goto end;
     }
+    Py_XDECREF(res);
+
     res = PyObject_CallMethodObjArgs(self->raw, _PyIO_str_close, NULL);
 
 end:

Modified: sandbox/trunk/io-c/_iobase.c
==============================================================================
--- sandbox/trunk/io-c/_iobase.c	(original)
+++ sandbox/trunk/io-c/_iobase.c	Thu Jan  8 22:59:05 2009
@@ -166,6 +166,7 @@
         else
             return NULL;
     }
+    Py_XDECREF(res);
     Py_RETURN_NONE;
 }
 


More information about the Python-checkins mailing list