summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-12 06:19:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-12 06:19:00 +0000
commit66f79104e60583730e51db9d8a69f7f5b8659bf9 (patch)
tree5fa643857198995bfbf46c8c60ff8ca081ffc73f /vm.c
parent8303bc6cf6d67aa203d57a8ba1810a669766eb46 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 65258bd56e..52d505ab7c 100644
--- a/vm.c
+++ b/vm.c
@@ -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);
}