Commit e130a07e authored by btharper's avatar btharper Committed by Victor Stinner

bpo-36356: Fix memory leak in _PyPreConfig_Read() (GH-12425)

_PyPreConfig_Read() now free 'old_old' at exit.
parent 5f1e8b4d
Fix leaks that led to build failure when configured with address sanitizer.
......@@ -514,6 +514,7 @@ _PyPreConfig_Read(_PyPreConfig *config)
err = preconfig_read(config, NULL);
setlocale(LC_CTYPE, old_loc);
PyMem_RawFree(old_loc);
return err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment