From e3edaea33d396334c267fc44c0d8023077905e96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= <martin@v.loewis.de>
Date: Mon, 15 May 2006 05:51:36 +0000
Subject: Fix memory leak.

---
 Modules/posixmodule.c | 1 +
 1 file changed, 1 insertion(+)

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
-- 
cgit v0.12

