mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix crash in mrb_parser_free() due to freed memory access
This commit is contained in:
@@ -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*
|
||||
|
||||
Reference in New Issue
Block a user