bpo-36854: Fix refleak in subinterpreter (GH-17331) · python/cpython@310e2d2 · GitHub
Skip to content

Commit 310e2d2

Browse files
authored
bpo-36854: Fix refleak in subinterpreter (GH-17331)
finalize_interp_clear() now explicitly clears the codec registry and then trigger a GC collection to clear all references.
1 parent 91daa9d commit 310e2d2

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Modules/_testcapimodule.c

Lines changed: 5 additions & 2 deletions

Python/pylifecycle.c

Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)