summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
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 c478062822..03d20599b9 100644
--- a/iseq.c
+++ b/iseq.c
@@ -665,7 +665,7 @@ insn_operand_intern(rb_iseq_t *iseq,
case TS_GENTRY:
{
struct global_entry *entry = (struct global_entry *)op;
- ret = rb_str_new2(rb_id2name(entry->id));
+ ret = rb_str_dup(rb_id2str(entry->id));
}
break;