summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 88185cfb0b..95c773bf02 100644
--- a/string.c
+++ b/string.c
@@ -250,7 +250,7 @@ rb_fstring(VALUE str)
static VALUE
setup_fake_str(struct RString *fake_str, const char *name, long len, int encidx)
{
- fake_str->basic.flags = T_STRING|RSTRING_NOEMBED|ELTS_SHARED;
+ fake_str->basic.flags = T_STRING|RSTRING_NOEMBED|STR_NOFREE;
/* SHARED to be allocated by the callback */
ENCODING_SET_INLINED((VALUE)fake_str, encidx);