We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a969a commit 86cd3ddCopy full SHA for 86cd3dd
Python/pylifecycle.c
@@ -1999,7 +1999,6 @@ _Py_Finalize(_PyRuntimeState *runtime)
1999
_PyAtExit_Call(tstate->interp);
2000
2001
assert(_PyThreadState_GET() == tstate);
2002
- finalize_subinterpreters();
2003
2004
/* Copy the core config, PyInterpreterState_Delete() free
2005
the core config memory */
@@ -2081,6 +2080,9 @@ _Py_Finalize(_PyRuntimeState *runtime)
2081
2080
_PyImport_FiniExternal(tstate->interp);
2082
finalize_modules(tstate);
2083
+ /* Clean up any lingering subinterpreters. */
2084
+ finalize_subinterpreters();
2085
+
2086
/* Print debug stats if any */
2087
_PyEval_Fini();
2088
0 commit comments