add new function mrb_parser_free()

This commit is contained in:
Yukihiro Matsumoto
2012-07-03 21:52:11 +09:00
parent a1af20baa9
commit fc27f71289
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -4775,6 +4775,11 @@ mrb_parser_new(mrb_state *mrb)
return p;
}
void
mrb_parser_free(parser_state *p) {
mrb_pool_close(p->pool);
}
mrbc_context*
mrbc_context_new(mrb_state *mrb)
{