diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-05-15 05:51:36 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-05-15 05:51:36 (GMT) |
commit | e3edaea33d396334c267fc44c0d8023077905e96 (patch) | |
tree | 65e9577a437aef0ee4fe8e7cf97d1c74d26f93ab /Modules | |
parent | 100344817c50c87d3d6b889261e12e0f3fa1b49b (diff) | |
download | cpython-e3edaea33d396334c267fc44c0d8023077905e96.zip cpython-e3edaea33d396334c267fc44c0d8023077905e96.tar.gz cpython-e3edaea33d396334c267fc44c0d8023077905e96.tar.bz2 |
Fix memory leak.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index f77832d..03fae25 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1855,6 +1855,7 @@ posix_listdir(PyObject *self, PyObject *args) free(wnamebuf); return NULL; } + free(wnamebuf); return d; } /* Drop the argument parsing error as narrow strings |