8000 Clean sysdict and builtins of interpreter. · python/cpython@137967a · GitHub
[go: up one dir, main page]

Skip to content

Commit 137967a

Browse files
committed
Clean sysdict and builtins of interpreter.
1 parent 10e4664 commit 137967a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/pystate.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ PyInterpreterState_Clear(PyInterpreterState *interp)
286286
}
287287
HEAD_UNLOCK(runtime);
288288

289+
PyDict_Clear(interp->sysdict);
290+
PyDict_Clear(interp->builtins);
291+
289292
Py_CLEAR(interp->audit_hooks);
290293

291294
PyConfig_Clear(&interp->config);

0 commit comments

Comments
 (0)
0