diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-12 06:19:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-12 06:19:00 +0000 |
commit | 66f79104e60583730e51db9d8a69f7f5b8659bf9 (patch) | |
tree | 5fa643857198995bfbf46c8c60ff8ca081ffc73f /vm.c | |
parent | 8303bc6cf6d67aa203d57a8ba1810a669766eb46 (diff) | |
download | ruby-66f79104e60583730e51db9d8a69f7f5b8659bf9.tar.gz |
vm.c: free by ruby_xfree
* vm.c (ruby_vm_run_at_exit_hooks): should free by `ruby_xfree`
memories allocated by `ALLOC`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -566,7 +566,7 @@ ruby_vm_run_at_exit_hooks(rb_vm_t *vm) while (l) { rb_at_exit_list* t = l->next; rb_vm_at_exit_func *func = l->func; - free(l); + ruby_xfree(l); l = t; (*func)(vm); } |