1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2017-05-12 06:19:00 +00:00
parent 8303bc6cf6
commit 66f79104e6

2
vm.c
View file

@ -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);
}