Hi,

On Jul 5, 2008, at 2:46 AM, Yukihiro Matsumoto wrote:

> The following patch from ruby_1_8 should fix the leak.  Could you try?
>
> 							matz.

yes, it works fine :-)
Here are the results from my tests:

test01.rb
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux]
VmSize:	    3108 kB
VmSize:	    3240 kB
ruby 1.8.6 (2008-07-03 patchlevel 265) [i686-linux]
VmSize:	    3116 kB
VmSize:	    3248 kB
====
test02.rb
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux]
VmSize:	    2972 kB
VmSize:	    3104 kB
ruby 1.8.6 (2008-07-03 patchlevel 265) [i686-linux]
VmSize:	    2988 kB
VmSize:	    3120 kB
====
test03.rb
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux]
VmSize:	    2972 kB
VmSize:	    3104 kB
ruby 1.8.6 (2008-07-03 patchlevel 265) [i686-linux]
VmSize:	    2984 kB
VmSize:	    3116 kB
====
test04.rb
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux]
VmSize:	    2976 kB
VmSize:	    2976 kB
ruby 1.8.6 (2008-07-03 patchlevel 265) [i686-linux]
VmSize:	    2988 kB
VmSize:	    2988 kB

meaning HEAD from ruby_1_8_6 does not leak after applying your patch.
thanks!
-- 
Rolando Abarca M.