aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}