[Python-checkins] python/dist/src/Objects fileobject.c,2.179,2.180
nnorwitz at users.sourceforge.net
nnorwitz at users.sourceforge.net
Fri Aug 15 14:05:48 EDT 2003
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv27284/Objects
Modified Files:
fileobject.c
Log Message:
Fix SF #789402, Memory leak on open()
If opening a directory, the exception would leak.
Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.179
retrieving revision 2.180
diff -C2 -d -r2.179 -r2.180
*** fileobject.c 18 May 2003 12:56:25 -0000 2.179
--- fileobject.c 15 Aug 2003 20:05:45 -0000 2.180
***************
*** 100,103 ****
--- 100,104 ----
EISDIR, msg);
PyErr_SetObject(PyExc_IOError, exc);
+ Py_XDECREF(exc);
return NULL;
}
More information about the Python-checkins
mailing list