From: Philip Jenvey Date: Wed, 7 Apr 2010 05:19:21 +0000 (+0000) Subject: woops these strings aren't kept around, free them X-Git-Tag: v3.2a1~1203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9aedd2011f6ab83215738e5214cbd6e484ca754;p=thirdparty%2FPython%2Fcpython.git woops these strings aren't kept around, free them --- diff --git a/Modules/main.c b/Modules/main.c index 95fae17f832a..5ae82efb1af3 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -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); } }