From: Kristján Valur Jónsson Date: Sat, 24 Jan 2009 10:33:25 +0000 (+0000) Subject: Issue 3677: Release the path string on py3k X-Git-Tag: v3.1a1~417 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92cb4384481417d07344d97071df8e9734f1463b;p=thirdparty%2FPython%2Fcpython.git Issue 3677: Release the path string on py3k --- diff --git a/Python/import.c b/Python/import.c index b79c048fa382..37e3f4b59841 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) {