commit | 92cb4384481417d07344d97071df8e9734f1463b | [log] [tgz] |
---|---|---|
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | Sat Jan 24 10:33:25 2009 +0000 |
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | Sat Jan 24 10:33:25 2009 +0000 |
tree | ca36889ff88a53a6cad93b0b7f7dc5ab34197b6e | |
parent | e4bccb714636edd50a788f0fbd1c37ae3cf6b3c1 [diff] |
Issue 3677: Release the path string on py3k
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 @@ * "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) {