[3.13] gh-140301: Fix memory leak in subinterpreter PyConfig cleanup (GH-140303) (#140684)

[3.13] gh-140301: Fix memory leak in subinterpreter `PyConfig` cleanup (GH-140303)
(cherry picked from commit a615fb49c9)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
Shamil 2025-10-27 22:42:13 +03:00 committed by GitHub
parent 2d29aa2036
commit fd6df66624
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -985,6 +985,8 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
_PyObject_FiniState(interp);
PyConfig_Clear(&interp->config);
free_interpreter(interp);
}