summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 85d4cca000..ad6ed332e8 100644
--- a/iseq.c
+++ b/iseq.c
@@ -521,7 +521,7 @@ rb_iseq_pathobj_new(VALUE path, VALUE realpath)
else {
if (!NIL_P(realpath)) realpath = rb_fstring(realpath);
pathobj = rb_ary_new_from_args(2, rb_fstring(path), realpath);
- rb_obj_freeze(pathobj);
+ rb_ary_freeze(pathobj);
}
return pathobj;
}