woops these strings aren't kept around, free them

This commit is contained in:
Philip Jenvey 2010-04-07 05:19:21 +00:00
parent 6c96ffe031
commit a9aedd2011
1 changed files with 1 additions and 0 deletions

View File

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