summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2010-04-07 05:19:21 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2010-04-07 05:19:21 (GMT)
commita9aedd2011f6ab83215738e5214cbd6e484ca754 (patch)
treed4ae5c8a20a1b0ffe71d277215206533cd82780e /Modules/main.c
parent6c96ffe031c1167730dc1d5918971952857d1685 (diff)
downloadcpython-a9aedd2011f6ab83215738e5214cbd6e484ca754.zip
cpython-a9aedd2011f6ab83215738e5214cbd6e484ca754.tar.gz
cpython-a9aedd2011f6ab83215738e5214cbd6e484ca754.tar.bz2
woops these strings aren't kept around, free them
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 95fae17..5ae82ef 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);
}
}