[Python-checkins] r80075 - python/branches/py3k/Modules/main.c

philip.jenvey python-checkins at python.org
Wed Apr 14 19:03:38 CEST 2010


Author: philip.jenvey
Date: Wed Apr 14 19:03:38 2010
New Revision: 80075

Log:
strings from _Py_char2wchar need PyMem_Free


Modified:
   python/branches/py3k/Modules/main.c

Modified: python/branches/py3k/Modules/main.c
==============================================================================
--- python/branches/py3k/Modules/main.c	(original)
+++ python/branches/py3k/Modules/main.c	Wed Apr 14 19:03:38 2010
@@ -439,7 +439,7 @@
 		for (p = strtok(buf, ","); p != NULL; p = strtok(NULL, ",")) {
 			if ((warning = _Py_char2wchar(p)) != NULL) {
 				PySys_AddWarnOption(warning);
-				free(warning);
+				PyMem_Free(warning);
 			}
 		}
 		setlocale(LC_ALL, oldloc);


More information about the Python-checkins mailing list