diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2009-01-24 10:33:25 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2009-01-24 10:33:25 (GMT) |
commit | 92cb4384481417d07344d97071df8e9734f1463b (patch) | |
tree | ca36889ff88a53a6cad93b0b7f7dc5ab34197b6e /Python | |
parent | e4bccb714636edd50a788f0fbd1c37ae3cf6b3c1 (diff) | |
download | cpython-92cb4384481417d07344d97071df8e9734f1463b.zip cpython-92cb4384481417d07344d97071df8e9734f1463b.tar.gz cpython-92cb4384481417d07344d97071df8e9734f1463b.tar.bz2 |
Issue 3677: Release the path string on py3k
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |