1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* array.c (flatten): fix memory leak.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2008-05-21 21:41:09 +00:00
parent 404de438af
commit 1ef64a6624
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Thu May 22 06:30:10 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* array.c (flatten): fix memory leak.
Thu May 22 06:21:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf-utf8/nkf.c (nkf_str_caseeql): added.

View file

@ -2867,6 +2867,8 @@ flatten(VALUE ary, int level, int *modified)
ary = rb_ary_pop(stack);
}
st_free_table(memo);
return result;
}