]> granicus.if.org Git - python/commitdiff
woops these strings aren't kept around, free them
authorPhilip Jenvey <pjenvey@underboss.org>
Wed, 7 Apr 2010 05:19:21 +0000 (05:19 +0000)
committerPhilip Jenvey <pjenvey@underboss.org>
Wed, 7 Apr 2010 05:19:21 +0000 (05:19 +0000)
Modules/main.c

index 95fae17f832a046bed3bd37cf320e3eed726ac92..5ae82efb1af3c4d0cbae52e9c7e8b3cd804e78d4 100644 (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);
                }
        }