From 92cb4384481417d07344d97071df8e9734f1463b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Sat, 24 Jan 2009 10:33:25 +0000 Subject: Issue 3677: Release the path string on py3k --- Python/import.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/import.c b/Python/import.c index b79c048..37e3f4b 100644 --- a/Python/import.c +++ b/Python/import.c @@ -3255,6 +3255,7 @@ NullImporter_init(NullImporter *self, PyObject *args, PyObject *kwds) * "e:\\shared\\" and "\\\\whiterab-c2znlh\\shared" as dirs. */ rv = GetFileAttributesA(path); + PyMem_Free(path); if (rv != INVALID_FILE_ATTRIBUTES) { /* it exists */ if (rv & FILE_ATTRIBUTE_DIRECTORY) { -- cgit v0.12