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) ...@@ -268,8 +268,10 @@ mrb_gc_mark_gv(mrb_state *mrb)
void void
mrb_gc_free_gv(mrb_state *mrb) mrb_gc_free_gv(mrb_state *mrb)
{ {
if (mrb->globals) if (mrb->globals) {
iv_free(mrb, mrb->globals); iv_free(mrb, mrb->globals);
mrb->globals = NULL;
}
} }
void 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