summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index 037df44d2c..48de119a32 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1968,6 +1968,8 @@ rb_iseq_clone(VALUE iseqval, VALUE newcbase)
RB_OBJ_WRITTEN(iseq1->self, Qundef, iseq1->klass);
}
+ RB_GC_GUARD(iseqval); /* seems necessary iff RGenGC is disabled */
+
return newiseq;
}