From e3edaea33d396334c267fc44c0d8023077905e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 15 May 2006 05:51:36 +0000 Subject: [PATCH] Fix memory leak. --- Modules/posixmodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index f77832dbe69..03fae255c32 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