mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.14] gh-140301: Fix memory leak in subinterpreter PyConfig cleanup (GH-140303) (#140360)
gh-140301: Fix memory leak in subinterpreter `PyConfig` cleanup (GH-140303)
(cherry picked from commit a615fb49c9)
Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
357284edb5
commit
d7fe4e99a2
2 changed files with 3 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
Fix memory leak of ``PyConfig`` in subinterpreters.
|
||||
|
|
@ -1049,6 +1049,8 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
|
|||
|
||||
_PyObject_FiniState(interp);
|
||||
|
||||
PyConfig_Clear(&interp->config);
|
||||
|
||||
free_interpreter(interp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue