mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Use PyThreadState_DeleteCurrent() instead of PyThreadState_Delete()
and PyEval_ReleaseThread(). This fixes SF bug #125673 PyThreadState_Delete: invalid tstate (Unix only?).
This commit is contained in:
parent
2975786dec
commit
2528b19a86
1 changed files with 1 additions and 2 deletions
|
@ -204,8 +204,7 @@ t_bootstrap(void *boot_raw)
|
||||||
else
|
else
|
||||||
Py_DECREF(res);
|
Py_DECREF(res);
|
||||||
PyThreadState_Clear(tstate);
|
PyThreadState_Clear(tstate);
|
||||||
PyEval_ReleaseThread(tstate);
|
PyThreadState_DeleteCurrent();
|
||||||
PyThreadState_Delete(tstate);
|
|
||||||
PyThread_exit_thread();
|
PyThread_exit_thread();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue