From 8e3d44e0df5b5ae9e549f5e7bb5840038e9ffcee Mon Sep 17 00:00:00 2001 From: shyouhei Date: Thu, 8 Mar 2007 08:34:01 +0000 Subject: * merge -c 11965 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@12013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 9e65a76f32..d1466e77ca 100644 --- a/parse.y +++ b/parse.y @@ -5732,7 +5732,8 @@ top_local_setup() rb_mem_clear(ruby_scope->local_vars+i, len-i); } if (ruby_scope->local_tbl && ruby_scope->local_vars[-1] == 0) { - xfree(ruby_scope->local_tbl); + if (!(ruby_scope->flags & SCOPE_CLONE)) + xfree(ruby_scope->local_tbl); } ruby_scope->local_tbl = local_tbl(); } -- cgit v1.2.3