ruby-changes:5025
From: matz <ko1@a...>
Date: Thu, 22 May 2008 09:58:07 +0900 (JST)
Subject: [ruby-changes:5025] matz - Ruby:r16518 (trunk): * array.c (flatten): free memo hash table before raising exception.
matz 2008-05-22 09:57:47 +0900 (Thu, 22 May 2008) New Revision: 16518 Modified files: trunk/ChangeLog trunk/array.c Log: * array.c (flatten): free memo hash table before raising exception. [ruby-dev:34789] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/array.c?r1=16518&r2=16517&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16518&r2=16517&diff_format=u Index: array.c =================================================================== --- array.c (revision 16517) +++ array.c (revision 16518) @@ -2848,6 +2848,7 @@ *modified = 1; id = (st_data_t)tmp; if (st_lookup(memo, id, 0)) { + st_free_table(memo); rb_raise(rb_eArgError, "tried to flatten recursive array"); } st_insert(memo, id, (st_data_t)Qtrue); Index: ChangeLog =================================================================== --- ChangeLog (revision 16517) +++ ChangeLog (revision 16518) @@ -1,3 +1,8 @@ +Thu May 22 08:28:49 2008 Yukihiro Matsumoto <matz@r...> + + * array.c (flatten): free memo hash table before raising exception. + [ruby-dev:34789] + Thu May 22 06:30:10 2008 Hidetoshi NAGAI <nagai@a...> * array.c (flatten): fix memory leak. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/