Bug #7389 ยป rb_str_free_dispose_string.patch
parse.y | ||
---|---|---|
static void
|
||
dispose_string(VALUE str)
|
||
{
|
||
/* TODO: should use another API? */
|
||
if (RBASIC(str)->flags & RSTRING_NOEMBED)
|
||
xfree(RSTRING_PTR(str));
|
||
rb_str_free(str);
|
||
rb_gc_force_recycle(str);
|
||
}
|
||