Skip to content

Commit

Permalink
strings from _Py_char2wchar need PyMem_Free
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Apr 14, 2010
1 parent 7c3e577 commit a1bda34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a1bda34

Please sign in to comment.