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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9aedd2011f6ab83215738e5214cbd6e484ca754;p=python woops these strings aren't kept around, free them --- diff --git a/Modules/main.c b/Modules/main.c index 95fae17f83..5ae82efb1a 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); } }