mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
gh-140301: Fix memory leak in subinterpreter PyConfig cleanup (#140303)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
baf45159e5
commit
a615fb49c9
2 changed files with 3 additions and 0 deletions
|
|
@ -963,6 +963,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