summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/preconfig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/preconfig.c b/Python/preconfig.c
index 1efc7ee5c5..b03436181c 100644
--- a/Python/preconfig.c
+++ b/Python/preconfig.c
@@ -514,6 +514,7 @@ _PyPreConfig_Read(_PyPreConfig *config)
err = preconfig_read(config, NULL);
setlocale(LC_CTYPE, old_loc);
+ PyMem_RawFree(old_loc);
return err;
}