projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e71362d
)
Windows: fix leak in posix_listdir.
author
Stefan Krah
<stefan@bytereef.org>
Sat, 27 Nov 2010 22:06:49 +0000
(22:06 +0000)
committer
Stefan Krah
<stefan@bytereef.org>
Sat, 27 Nov 2010 22:06:49 +0000
(22:06 +0000)
Modules/posixmodule.c
patch
|
blob
|
history
diff --git
a/Modules/posixmodule.c
b/Modules/posixmodule.c
index be99be86516a816cb63d8e3a7b9a2db504b68568..3197a0d2d8dfb8ebaf439738788fd85a0214b8ce 100644
(file)
--- a/
Modules/posixmodule.c
+++ b/
Modules/posixmodule.c
@@
-2396,6
+2396,7
@@
posix_listdir(PyObject *self, PyObject *args)
}
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 != ':')