mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
[3.14] gh-138756: Fix leak of inittab memory in PyInitConfig_Free() (GH-138792) (#139703)
gh-138756: Fix leak of inittab memory in PyInitConfig_Free() (GH-138792)
(cherry picked from commit 3d521a62e7)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
ddd1264469
commit
9e091dbf02
1 changed files with 1 additions and 0 deletions
|
|
@ -3729,6 +3729,7 @@ PyInitConfig_Free(PyInitConfig *config)
|
|||
}
|
||||
|
||||
initconfig_free_config(&config->config);
|
||||
PyMem_RawFree(config->inittab);
|
||||
free(config->err_msg);
|
||||
free(config);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue