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:
Guido van Rossum 2001-01-23 01:47:18 +00:00
parent 2975786dec
commit 2528b19a86
1 changed files with 1 additions and 2 deletions

View File

@ -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();
}