Commit 2528b19a authored by Guido van Rossum's avatar Guido van Rossum

Use PyThreadState_DeleteCurrent() instead of PyThreadState_Delete()

and PyEval_ReleaseThread().

This fixes SF bug #125673 PyThreadState_Delete: invalid tstate (Unix
only?).
parent 2975786d
......@@ -204,8 +204,7 @@ t_bootstrap(void *boot_raw)
else
Py_DECREF(res);
PyThreadState_Clear(tstate);
PyEval_ReleaseThread(tstate);
PyThreadState_Delete(tstate);
PyThreadState_DeleteCurrent();
PyThread_exit_thread();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment