summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/class.c')
-rw-r--r--src/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c
index 7097a593a..d044cb68a 100644
--- a/src/class.c
+++ b/src/class.c
@@ -1539,7 +1539,7 @@ mrb_class_path(mrb_state *mrb, struct RClass *c)
}
mrb_obj_iv_set(mrb, (struct RObject*)c, classpath, path);
}
- return path;
+ return mrb_str_dup(mrb, path);
}
MRB_API struct RClass *