Skip to content

Commit 49b3b2d

Browse files
committed
string.c: fake string is not sharing
* string.c (setup_fake_str): fake string does not share another string, but just should not free. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent ed52fa6 commit 49b3b2d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Wed Dec 3 14:34:07 2014 Nobuyoshi Nakada <[email protected]>
2+
3+
* string.c (setup_fake_str): fake string does not share another
4+
string, but just should not free.
5+
16
Wed Dec 3 11:14:14 2014 NAKAMURA Usaku <[email protected]>
27

38
* win32/win32.c (w32_spawn): `v2` is used not only for `shell` but also

Diff for: string.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ rb_fstring(VALUE str)
250250
static VALUE
251251
setup_fake_str(struct RString *fake_str, const char *name, long len, int encidx)
252252
{
253-
fake_str->basic.flags = T_STRING|RSTRING_NOEMBED|ELTS_SHARED;
253+
fake_str->basic.flags = T_STRING|RSTRING_NOEMBED|STR_NOFREE;
254254
/* SHARED to be allocated by the callback */
255255

256256
ENCODING_SET_INLINED((VALUE)fake_str, encidx);

0 commit comments

Comments
 (0)