Skip to content

Commit

Permalink
2000-04-18
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Apr 17, 2000
1 parent 6d77e51 commit cd09e4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -6359,8 +6359,10 @@ thread_free(th)
th->stk_ptr = 0;
if (th->locals) st_free_table(th->locals);
if (th->status != THREAD_KILLED) {
th->prev->next = th->next;
th->next->prev = th->prev;
if (th->prev)
th->prev->next = th->next;
if (th->next)
th->next->prev = th->prev;
}
if (th != main_thread) free(th);
}
Expand Down

0 comments on commit cd09e4a

Please sign in to comment.