From b02158efa335902db30d842483a409b43bd2db69 Mon Sep 17 00:00:00 2001
From: Guido van Rossum <guido@python.org>
Date: Sat, 2 Aug 1997 03:13:11 +0000
Subject: Oops, one more checkin.  Use the new tstate/interp interface.

---
 Modules/threadmodule.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 2201799..49cefcc 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -224,6 +224,7 @@ t_bootstrap(boot_raw)
 	}
 	else
 		Py_DECREF(res);
+	PyThreadState_Clear(tstate);
 	PyEval_ReleaseThread(tstate);
 	PyThreadState_Delete(tstate);
 	exit_thread();
@@ -257,7 +258,7 @@ thread_start_new_thread(self, fargs)
 	boot = PyMem_NEW(struct bootstate, 1);
 	if (boot == NULL)
 		return PyErr_NoMemory();
-	boot->interp = PyThreadState_Get()->interpreter_state;
+	boot->interp = PyThreadState_Get()->interp;
 	boot->func = func;
 	boot->args = args;
 	boot->keyw = keyw;
-- 
cgit v0.12

