diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-15 23:39:27 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-15 23:39:27 +0000 |
commit | ad0f7f889b90524e9d588d9d735b8af66b0a5956 (patch) | |
tree | 247d487d5c6950caaf258060e0bfb4a848e5b3e7 | |
parent | f67c74acd7f27ca556a2195188e16828836acba1 (diff) |
* ext/dl/sym.c (rb_dlsym_call): needs FREE_ARGS before return.
fixed memory leak. [ruby-Bugs-2034]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/dl/sym.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Thu Jun 16 08:29:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> + + * ext/dl/sym.c (rb_dlsym_call): needs FREE_ARGS before return. + fixed memory leak. [ruby-Bugs-2034] + Wed Jun 15 18:26:39 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/lib/tk.rb: support "tk inactive" sub-command [for Tcl/Tk8.5a3] diff --git a/ext/dl/sym.c b/ext/dl/sym.c index 59a618496f..40b2035c00 100644 --- a/ext/dl/sym.c +++ b/ext/dl/sym.c @@ -941,6 +941,7 @@ rb_dlsym_call(int argc, VALUE argv[], VALUE self) } } + FREE_ARGS; #undef FREE_ARGS return rb_assoc_new(val,dvals); } |