[Python-checkins] r70845 - python/branches/py3k/Python/import.c

kristjan.jonsson python-checkins at python.org
Tue Mar 31 19:47:50 CEST 2009


Author: kristjan.jonsson
Date: Tue Mar 31 19:47:50 2009
New Revision: 70845
Log:
Fix a leaking "pathname" in import.c
Modified:
 python/branches/py3k/Python/import.c
Modified: python/branches/py3k/Python/import.c
==============================================================================
--- python/branches/py3k/Python/import.c	(original)
+++ python/branches/py3k/Python/import.c	Tue Mar 31 19:47:50 2009
@@ -3114,6 +3114,7 @@
 		return NULL;
 	}
 	m = load_source_module(name, pathname, fp);
+	PyMem_Free(pathname);
 	fclose(fp);
 	return m;
 }


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /