Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use rb_str_free for freeing string in parse.y

  • Loading branch information...
commit 02f9f6bf8e973df14e572674bf9602e6e4dc3dd2 1 parent e1fbcc4
Sokolov Yura authored

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. +1 3 parse.y
4 parse.y
@@ -6409,9 +6409,7 @@ parser_regx_options(struct parser_params *parser)
6409 6409 static void
6410 6410 dispose_string(VALUE str)
6411 6411 {
6412   - /* TODO: should use another API? */
6413   - if (RBASIC(str)->flags & RSTRING_NOEMBED)
6414   - xfree(RSTRING_PTR(str));
  6412 + rb_str_free(str);
6415 6413 rb_gc_force_recycle(str);
6416 6414 }
6417 6415

0 comments on commit 02f9f6b

Please sign in to comment.
Something went wrong with that request. Please try again.