Should have cleared `mrb->globals` in `mrb_gc_free_gv`; fix #4618

parent 151d0c14
......@@ -268,8 +268,10 @@ mrb_gc_mark_gv(mrb_state *mrb)
void
mrb_gc_free_gv(mrb_state *mrb)
{
if (mrb->globals)
if (mrb->globals) {
iv_free(mrb, mrb->globals);
mrb->globals = NULL;
}
}
void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment