From e130a07eb20c4b655d182d5d10d778c7584efe55 Mon Sep 17 00:00:00 2001 From: btharper Date: Tue, 19 Mar 2019 06:50:25 -0400 Subject: bpo-36356: Fix memory leak in _PyPreConfig_Read() (GH-12425) _PyPreConfig_Read() now free 'old_old' at exit. --- Python/preconfig.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python') 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; } -- cgit v1.2.1