From: Martin v. Löwis Date: Mon, 15 May 2006 05:51:36 +0000 (+0000) Subject: Fix memory leak. X-Git-Tag: v2.5b1~651 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3edaea33d396334c267fc44c0d8023077905e96;p=thirdparty%2FPython%2Fcpython.git Fix memory leak. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index f77832dbe693..03fae255c325 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