<khaines / enigo.com> wrote in message 
news:Pine.LNX.4.61.0608281908340.21678 / server1.enigo.com...
> On Tue, 29 Aug 2006, Kent Sibilev wrote:
>
>> Interesting. Does this patch fixes it?
>>
>> Index: hash.c
>> ===================================================================
>> RCS file: /src/ruby/hash.c,v
>> retrieving revision 1.128.2.16
>> diff -u -r1.128.2.16 hash.c
>> --- hash.c      6 Jul 2006 15:44:26 -0000       1.128.2.16
>> +++ hash.c      29 Aug 2006 00:14:17 -0000
>> @@ -328,6 +328,7 @@
>>       hash = hash_alloc(klass);
>>
>>       RHASH(hash)->ifnone = Qnil;
>> +       st_free_table(RHASH(hash)->tbl);
>>       RHASH(hash)->tbl = st_copy(RHASH(argv[0])->tbl);
>>
>>       return hash;
>
> It does indeed.  Yay.

    Nice!