mirror of https://github.com/python/cpython
strings from _Py_char2wchar need PyMem_Free
This commit is contained in:
parent
7c3e577395
commit
a1bda34cba
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue