No longer need to copy `argv` from `mrb_get_args`; ref
MODIFY
mrbgems/mruby-object-ext/src/object.c
mrbgems/mruby-object-ext/src/object.c
@@ -67,7 +67,6 @@ mrb_obj_instance_exec(mrb_state *mrb, mrb_value self)
mrb_int argc;
mrb_value blk;
struct RClass *c;
- mrb_value args;
mrb_get_args(mrb, "*&", &argv, &argc, &blk);
@@ -85,8 +84,6 @@ mrb_obj_instance_exec(mrb_state *mrb, mrb_value self)
c = mrb_class_ptr(mrb_singleton_class(mrb, self));
break;
}
- args = mrb_ary_new_from_values(mrb, argc, argv);
- argv = RARRAY_PTR(args);
mrb->c->ci->target_class = c;
return mrb_yield_cont(mrb, blk, self, argc, argv);
}

MODIFY
src/kernel.c
src/kernel.c
@@ -411,11 +411,8 @@ mrb_obj_extend_m(mrb_state *mrb, mrb_value self)
{
mrb_value *argv;
mrb_int argc;
- mrb_value args;
mrb_get_args(mrb, "*", &argv, &argc);
- args = mrb_ary_new_from_values(mrb, argc, argv);
- argv = (mrb_value*)RARRAY_PTR(args);
return mrb_obj_extend(mrb, argc, argv, self);
}

No longer need to copy `argv` from `mrb_get_args`; ref #3722