diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 14:15:09 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 14:15:09 +0000 |
commit | 8c9c9268a588c36633b5d2891899636cee4c2ba5 (patch) | |
tree | 15964e17c1297efd1f44e10937a5c5d37d7574d3 | |
parent | 282a3cfb1cfb42b93c4bb5fe8b7392b9f8d8191e (diff) |
merge revision(s) 16534:
* parse.y (top_local_setup): fixed memory leak bug based on a
patch from Roger Pack <rogerpack2005 at gmail.com> in
[ruby-core:16610].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | parse.y | 3 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Sun Jun 15 23:13:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * parse.y (top_local_setup): fixed memory leak bug based on a + patch from Roger Pack <rogerpack2005 at gmail.com> in + [ruby-core:16610]. + Sun Jun 15 23:09:00 2008 NAKAMURA Usaku <usa@ruby-lang.org> * sprintf.c (rb_f_sprintf): fixed SEGV on win32 with "% 0e" % 1.0/0.0. @@ -5737,7 +5737,7 @@ top_local_setup() rb_mem_clear(vars+i, len-i); } else { - *vars++ = (VALUE)ruby_scope; + *vars++ = 0; rb_mem_clear(vars, len); } ruby_scope->local_vars = vars; @@ -5753,6 +5753,7 @@ top_local_setup() if (!(ruby_scope->flags & SCOPE_CLONE)) xfree(ruby_scope->local_tbl); } + ruby_scope->local_vars[-1] = 0; /* no reference needed */ ruby_scope->local_tbl = local_tbl(); } } @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-15" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20080615 -#define RUBY_PATCHLEVEL 212 +#define RUBY_PATCHLEVEL 213 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |