* 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:
nagai 2008-05-21 21:38:59 +00:00
parent 255341597a
commit b8424eaf02
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 05:45:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org> Thu May 22 05:45:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* proc.c (proc_dup): should copy safe_level from src proc * proc.c (proc_dup): should copy safe_level from src proc

View file

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