gh-140301: Fix memory leak in subinterpreter PyConfig cleanup (#140303)

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

View file

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