mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
* array.c (flatten): fix memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
255341597a
commit
b8424eaf02
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 05:45:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* proc.c (proc_dup): should copy safe_level from src proc
|
||||
|
|
2
array.c
2
array.c
|
@ -3143,6 +3143,8 @@ flatten(ary, level, modified)
|
|||
ary = rb_ary_pop(stack);
|
||||
}
|
||||
|
||||
st_free_table(memo);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue