diff --git a/src/class.c b/src/class.c index 5f082fc45..c11346223 100644 --- a/src/class.c +++ b/src/class.c @@ -1069,8 +1069,10 @@ mrb_mod_attr_reader(mrb_state *mrb, mrb_value mod) struct RClass *c = mrb_class_ptr(mod); mrb_value *argv; mrb_int argc, i; + int ai; mrb_get_args(mrb, "*", &argv, &argc); + ai = mrb_gc_arena_save(mrb); for (i=0; i