Permalink
Browse files

Fix crash in mrb_parser_free() due to freed memory access

  • Loading branch information...
sdottaka committed Jul 23, 2016
1 parent 97283fa commit 2eefbfed9d9162f7fe84fbdf51aae89f4958e02e
Showing with 1 addition and 1 deletion.
  1. +1 −1 mrbgems/mruby-compiler/core/parse.y
@@ -5516,10 +5516,10 @@ mrb_parser_new(mrb_state *mrb)
MRB_API void
mrb_parser_free(parser_state *p) {
mrb_pool_close(p->pool);
if (p->tokbuf != p->buf) {
mrb_free(p->mrb, p->tokbuf);
}
mrb_pool_close(p->pool);
}
MRB_API mrbc_context*

0 comments on commit 2eefbfe

Please sign in to comment.