Skip to content

Commit d7fe4e9

Browse files
miss-islingtonashm-devkumaraditya303
authored
[3.14] pythongh-140301: Fix memory leak in subinterpreter PyConfig cleanup (pythonGH-140303) (python#140360)
pythongh-140301: Fix memory leak in subinterpreter `PyConfig` cleanup (pythonGH-140303) (cherry picked from commit a615fb4) Co-authored-by: Shamil <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
1 parent 357284e commit d7fe4e9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix memory leak of ``PyConfig`` in subinterpreters.

Python/pystate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,8 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
10491049

10501050
_PyObject_FiniState(interp);
10511051

1052+
PyConfig_Clear(&interp->config);
1053+
10521054
free_interpreter(interp);
10531055
}
10541056

0 commit comments

Comments
 (0)