ruby-changes:46555
From: nobu <ko1@a...>
Date: Fri, 12 May 2017 15:19:05 +0900 (JST)
Subject: [ruby-changes:46555] nobu:r58670 (trunk): vm.c: free by ruby_xfree
nobu 2017-05-12 15:19:00 +0900 (Fri, 12 May 2017) New Revision: 58670 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58670 Log: vm.c: free by ruby_xfree * vm.c (ruby_vm_run_at_exit_hooks): should free by `ruby_xfree` memories allocated by `ALLOC`. Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 58669) +++ vm.c (revision 58670) @@ -566,7 +566,7 @@ ruby_vm_run_at_exit_hooks(rb_vm_t *vm) https://github.com/ruby/ruby/blob/trunk/vm.c#L566 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/