Skip to content

Commit 487863c

Browse files
committed
fixup! bpo-38962: Fix reference leak in the per-subinterpreter gc
1 parent 883cbee commit 487863c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Python/pylifecycle.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,11 +1253,7 @@ finalize_interp_clear(PyThreadState *tstate)
12531253
{
12541254
int is_main_interp = _Py_IsMainInterpreter(tstate);
12551255

1256-
/* bpo-36854: Explicitly clear the codec registry */
12571256
PyInterpreterState *interp = tstate->interp;
1258-
Py_CLEAR(interp->codec_search_path);
1259-
Py_CLEAR(interp->codec_search_cache);
1260-
Py_CLEAR(interp->codec_error_registry);
12611257

12621258
/* Clear interpreter state and all thread states */
12631259
PyInterpreterState_Clear(tstate->interp);

0 commit comments

Comments
 (0)