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:
parent
8303bc6cf6
commit
66f79104e6
1 changed files with 1 additions and 1 deletions
2
vm.c
2
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue