Kaydet (Commit) a1bda34c authored tarafından Philip Jenvey's avatar Philip Jenvey

strings from _Py_char2wchar need PyMem_Free

üst 7c3e5773
...@@ -439,7 +439,7 @@ Py_Main(int argc, wchar_t **argv) ...@@ -439,7 +439,7 @@ Py_Main(int argc, wchar_t **argv)
for (p = strtok(buf, ","); p != NULL; p = strtok(NULL, ",")) { for (p = strtok(buf, ","); p != NULL; p = strtok(NULL, ",")) {
if ((warning = _Py_char2wchar(p)) != NULL) { if ((warning = _Py_char2wchar(p)) != NULL) {
PySys_AddWarnOption(warning); PySys_AddWarnOption(warning);
free(warning); PyMem_Free(warning);
} }
} }
setlocale(LC_ALL, oldloc); setlocale(LC_ALL, oldloc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment