mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-36356: Fix memory leak in _PyPreConfig_Read() (GH-12425)
_PyPreConfig_Read() now free 'old_old' at exit.
This commit is contained in:
parent
5f1e8b4d24
commit
e130a07eb2
2 changed files with 2 additions and 0 deletions
|
@ -514,6 +514,7 @@ _PyPreConfig_Read(_PyPreConfig *config)
|
|||
err = preconfig_read(config, NULL);
|
||||
|
||||
setlocale(LC_CTYPE, old_loc);
|
||||
PyMem_RawFree(old_loc);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue