From 6c105b2dbfb56fcbcc77ed4b273e45908cfcbd50 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 29 Oct 2004 08:08:16 +0000 Subject: * 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 --- eval.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'eval.c') 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) { -- cgit