state.c: `reps` may be NULL if a broken compiled binary given.

parent e884236e
......@@ -137,6 +137,7 @@ mrb_irep_cutref(mrb_state *mrb, mrb_irep *irep)
if (irep->flags & MRB_IREP_NO_FREE) return;
reps = (mrb_irep**)irep->reps;
if (!reps) return;
for (i=0; i<irep->rlen; i++) {
mrb_irep *tmp = reps[i];
reps[i] = NULL;
......
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