[Python-checkins] r86843 - python/branches/py3k/Modules/posixmodule.c
stefan.krah
python-checkins at python.org
Sat Nov 27 23:06:49 CET 2010
Author: stefan.krah
Date: Sat Nov 27 23:06:49 2010
New Revision: 86843
Log:
Windows: fix leak in posix_listdir.
Modified:
python/branches/py3k/Modules/posixmodule.c
Modified: python/branches/py3k/Modules/posixmodule.c
==============================================================================
--- python/branches/py3k/Modules/posixmodule.c (original)
+++ python/branches/py3k/Modules/posixmodule.c Sat Nov 27 23:06:49 2010
@@ -2396,6 +2396,7 @@
}
strcpy(namebuf, PyBytes_AsString(opath));
len = PyObject_Size(opath);
+ Py_DECREF(opath);
if (len > 0) {
char ch = namebuf[len-1];
if (ch != SEP && ch != ALTSEP && ch != ':')
More information about the Python-checkins
mailing list