mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
woops these strings aren't kept around, free them
This commit is contained in:
parent
6c96ffe031
commit
a9aedd2011
1 changed files with 1 additions and 0 deletions
|
@ -417,6 +417,7 @@ Py_Main(int argc, wchar_t **argv)
|
|||
"not enough memory to copy PYTHONWARNINGS");
|
||||
mbstowcs(warning, buf, len);
|
||||
PySys_AddWarnOption(warning);
|
||||
free(warning);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue