From: Philip Jenvey Date: Wed, 14 Apr 2010 17:03:38 +0000 (+0000) Subject: strings from _Py_char2wchar need PyMem_Free X-Git-Tag: v3.2a1~1149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1bda34cba2de56bd902943aae909e96d3a14b2b;p=python strings from _Py_char2wchar need PyMem_Free --- diff --git a/Modules/main.c b/Modules/main.c index 8313e3d916..fa2002fc85 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -439,7 +439,7 @@ Py_Main(int argc, wchar_t **argv) 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);