From: Roger Pack Date: 2008-05-01T05:14:35+09:00 Subject: Re: leak stuff > This leaks too. Not sure if it's related or not. > > def grow > for i in 1..100 > eval "b#{i}=1" > end > end > 15000000.times {grow} Appears that it was the same bug. Attached is a patch which works at least on linux, but not on mac os [for some reason--maybe mine dynamically links to an old copy or something]. -R Index: parse.y =================================================================== --- parse.y (revision 16244) +++ parse.y (working copy) @@ -5821,7 +5821,8 @@ if (!(ruby_scope->flags & SCOPE_CLONE)) xfree(ruby_scope->local_tbl); } - ruby_scope->local_tbl = local_tbl(); + ruby_scope->local_vars[-1] = 0; + ruby_scope->local_tbl = local_tbl(); } } local_pop(); -- Posted via http://www.ruby-forum.com/.