summaryrefslogtreecommitdiff
path: root/Modules/_threadmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_threadmodule.c')
-rw-r--r--Modules/_threadmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c
index 19dd70458b..544bfdc137 100644
--- a/Modules/_threadmodule.c
+++ b/Modules/_threadmodule.c
@@ -1028,7 +1028,7 @@ t_bootstrap(void *boot_raw)
PyMem_DEL(boot_raw);
tstate->interp->num_threads--;
PyThreadState_Clear(tstate);
- _PyThreadState_DeleteCurrent(runtime);
+ _PyThreadState_DeleteCurrent(tstate);
PyThread_exit_thread();
}