summaryrefslogtreecommitdiffstats
path: root/Modules/python.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/python.c')
-rw-r--r--Modules/python.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/python.c b/Modules/python.c
index 2be69f1..2c08b96 100644
--- a/Modules/python.c
+++ b/Modules/python.c
@@ -43,6 +43,7 @@ main(int argc, char **argv)
for (i = 0; i < argc; i++) {
argv_copy[i] = _Py_char2wchar(argv[i], NULL);
if (!argv_copy[i]) {
+ free(oldloc);
fprintf(stderr, "Fatal Python error: "
"unable to decode the command line argument #%i\n",
i + 1);