diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index e574281..1007860 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -179,12 +179,12 @@ Py_Finalize() PyInterpreterState *interp; PyThreadState *tstate; - call_sys_exitfunc(); - if (!initialized) return; initialized = 0; + call_sys_exitfunc(); + /* Get current thread state and interpreter pointer */ tstate = PyThreadState_Get(); interp = tstate->interp; |