]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 3677: Release the path string on py3k
authorKristján Valur Jónsson <kristjan@ccpgames.com>
Sat, 24 Jan 2009 10:33:25 +0000 (10:33 +0000)
committerKristján Valur Jónsson <kristjan@ccpgames.com>
Sat, 24 Jan 2009 10:33:25 +0000 (10:33 +0000)
Python/import.c

index b79c048fa382bc83d03d666e343768412a0b2bed..37e3f4b5984190d66e719b17d49ddbb0586ff0e7 100644 (file)
@@ -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) {