summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
}