summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index a7e40ea86c..b3ff7fd558 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2069,6 +2069,7 @@ rb_iseq_defined_string(enum defined_type type)
str = rb_str_new_cstr(estr);;
OBJ_FREEZE(str);
defs[type-1] = str;
+ rb_gc_register_mark_object(str);
}
return str;
}