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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3edaea33d396334c267fc44c0d8023077905e96;p=python Fix memory leak. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index f77832dbe6..03fae255c3 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