Project

General

Profile

Bug #15162 ยป 0001-transcode.c-add-GC-guard-on-raise.patch

h.shirosaki (Hiroshi Shirosaki), 09/26/2018 11:38 AM

View differences:

transcode.c
3155 3155
    convpath = Qnil;
3156 3156
    transcode_search_path(sname, dname, search_convpath_i, &convpath);
3157 3157

  
3158
    if (NIL_P(convpath))
3159
        rb_exc_raise(rb_econv_open_exc(sname, dname, ecflags));
3158
    if (NIL_P(convpath)) {
3159
	VALUE exc = rb_econv_open_exc(sname, dname, ecflags);
3160
	RB_GC_GUARD(snamev);
3161
	RB_GC_GUARD(dnamev);
3162
	rb_exc_raise(exc);
3163
    }
3160 3164

  
3161 3165
    if (decorate_convpath(convpath, ecflags) == -1) {
3162 3166
	VALUE exc = rb_econv_open_exc(sname, dname, ecflags);
3163
-