summaryrefslogtreecommitdiff
path: root/transcode.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-06 01:29:21 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-06 01:29:21 (GMT)
commita4eae61521d2abe4bc60b1d02356b95751bf184a (patch)
treecb4370a06572af04e9b740e782b927f9f0d019f5 /transcode.c
parent8579a33966f49e600cec0589a918743175f4ec50 (diff)
transcode.c: GC guard
* transcode.c (rb_econv_substr_append): prevent src from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/transcode.c b/transcode.c
index 54fc316..f43131d 100644
--- a/transcode.c
+++ b/transcode.c
@@ -1850,6 +1850,7 @@ rb_econv_substr_append(rb_econv_t *ec, VALUE src, long off, long len, VALUE dst,
rb_econv_check_error(ec);
}
+ RB_GC_GUARD(src);
return dst;
}