mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
state.c: reps may be NULL if a broken compiled binary given.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user