diff Python/import.c @ 50996:5c7312ce5dbd

Issue 3677: Release the path string on py3k
author Kristján Valur Jónsson <kristjan@ccpgames.com>
date Sat, 24 Jan 2009 10:33:25 +0000
parents a823c9f3a452
children 9867c849530b
line wrap: on
line diff
--- a/Python/import.c	Sat Jan 24 01:47:57 2009 +0000
+++ b/Python/import.c	Sat Jan 24 10:33:25 2009 +0000
@@ -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) {