From 774479c68bf6953e89996c24287199d3f3331ba3 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Mon, 18 Apr 2005 08:46:17 +0000 Subject: Fix: [ 1176893 ] Readline segfault by unsilly-ing PyGILState_Release(). Backport candidate. --- Python/pystate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pystate.c') diff --git a/Python/pystate.c b/Python/pystate.c index 255cf7e86e..abca8ddfdf 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -503,6 +503,6 @@ PyGILState_Release(PyGILState_STATE oldstate) } /* Release the lock if necessary */ else if (oldstate == PyGILState_UNLOCKED) - PyEval_ReleaseThread(tcur); + PyEval_SaveThread(); } #endif /* WITH_THREAD */ -- cgit v1.2.1