diff --git a/array.c b/array.c index 4775472221..9884092ebe 100644 --- a/array.c +++ b/array.c @@ -1606,6 +1606,7 @@ rb_ary_splice(VALUE ary, long beg, long len, VALUE rpl) MEMMOVE(RARRAY_PTR(ary) + beg, RARRAY_CONST_PTR(rpl), VALUE, rlen); } } + RB_GC_GUARD(rpl); } void