diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-09 14:24:15 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-09 14:24:15 +0000 |
commit | ab2868bfba0b76a12e56335a3aec626d86ce07f6 (patch) | |
tree | 9a3743f9ce131f8e770a9b49ab23bbb76928a7b0 | |
parent | 270f2f15be57fd13905cad48259af45670ae9fb1 (diff) | |
download | ruby-ab2868bfba0b76a12e56335a3aec626d86ce07f6.tar.gz |
* process.c (rb_run_exec_options): fix resource leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | process.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Thu Oct 9 23:19:02 2008 Yusuke Endoh <mame@tsg.ne.jp> + + * process.c (rb_run_exec_options): fix resource leak. + Thu Oct 9 22:13:58 2008 Yusuke Endoh <mame@tsg.ne.jp> * test/ruby/test_module.rb (test_remove_class_variable): add a test @@ -2089,6 +2089,7 @@ rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s) char *cwd = my_getcwd(); rb_ary_store(soptions, EXEC_OPTION_CHDIR, hide_obj(rb_str_new2(cwd))); + xfree(cwd); } if (chdir(RSTRING_PTR(obj)) == -1) return -1; |