diff options
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -5948,9 +5948,7 @@ parser_regx_options(struct parser_params *parser) 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); } |