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:
parent
404de438af
commit
1ef64a6624
2 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
2
array.c
2
array.c
|
@ -2867,6 +2867,8 @@ flatten(VALUE ary, int level, int *modified)
|
|||
ary = rb_ary_pop(stack);
|
||||
}
|
||||
|
||||
st_free_table(memo);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue