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 | e8f46293b6bf786db3d71b356f8aab34b4d8d118 (patch) | |
tree | 247d487d5c6950caaf258060e0bfb4a848e5b3e7 | |
parent | c08a9f629da8b67891ee4de8364b33594d27ced9 (diff) | |
download | ruby-e8f46293b6bf786db3d71b356f8aab34b4d8d118.tar.gz ruby-e8f46293b6bf786db3d71b356f8aab34b4d8d118.tar.xz ruby-e8f46293b6bf786db3d71b356f8aab34b4d8d118.zip |
* ext/dl/sym.c (rb_dlsym_call): needs FREE_ARGS before return.
fixed memory leak. [ruby-Bugs-2034]
git-svn-id: http://svn.ruby-lang.org/repos/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 59a618496..40b2035c0 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); } |