summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-29 08:08:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-29 08:08:16 +0000
commit6c105b2dbfb56fcbcc77ed4b273e45908cfcbd50 (patch)
tree6c5d351eab06d9a153651f8e670faec009604fba /eval.c
parent7e2d146b099a9213dbfa806de0e311cb7d21876e (diff)
downloadruby-6c105b2dbfb56fcbcc77ed4b273e45908cfcbd50.tar.gz
ruby-6c105b2dbfb56fcbcc77ed4b273e45908cfcbd50.tar.xz
ruby-6c105b2dbfb56fcbcc77ed4b273e45908cfcbd50.zip
* eval.c (rb_thread_start_0): forget to free some memory chunks.
[ruby-core:03611] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 1f9d9375d..a8df3ebd1 100644
--- a/eval.c
+++ b/eval.c
@@ -11473,6 +11473,10 @@ rb_thread_start_0(fn, arg, th)
if (th == main_thread) ruby_stop(state);
rb_thread_remove(th);
+ if (saved_block) {
+ blk_free(saved_block);
+ }
+
if (state && status != THREAD_TO_KILL && !NIL_P(ruby_errinfo)) {
th->flags |= THREAD_RAISED;
if (state == TAG_FATAL) {