There was an error while loading. Please reload this page.
1 parent 2f9ada9 commit cde283dCopy full SHA for cde283d
1 file changed
Python/context.c
@@ -1302,7 +1302,9 @@ _PyContext_ClearFreeList(PyThreadState *tstate)
1302
void
1303
_PyContext_Fini(PyThreadState *tstate)
1304
{
1305
- Py_CLEAR(_token_missing);
+ if (_Py_IsMainInterpreter(tstate)) {
1306
+ Py_CLEAR(_token_missing);
1307
+ }
1308
_PyContext_ClearFreeList(tstate);
1309
#ifdef Py_DEBUG
1310
struct _Py_context_state *state = &tstate->interp->context;
0 commit comments