summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-23 09:48:01 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-23 09:48:01 +0000
commit530491c72fe537787ad3b0324aa6d6a61c87f0d3 (patch)
treec4976fb216ff9170250234c9617f10f1acc4dfbe /eval.c
parent3d699ae9ffc32665e8f9117c4149e2ae03123bdf (diff)
thread_free
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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