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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-08-06 20:47:35 +09:00
parent 151d0c14ed
commit 3dc8d9d7b3
+3 -1
View File
@@ -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