strings from _Py_char2wchar need PyMem_Free

This commit is contained in:
Philip Jenvey 2010-04-14 17:03:38 +00:00
parent 7c3e577395
commit a1bda34cba
1 changed files with 1 additions and 1 deletions

View File

@ -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);