summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 5f053ab313..8a4e709d25 100644
--- a/eval.c
+++ b/eval.c
@@ -5075,7 +5075,7 @@ thread_free(th)
{
if (th->stk_ptr) free(th->stk_ptr);
th->stk_ptr = 0;
- free(th);
+ if (th != main_thread) free(th);
}
static thread_t