summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-07-03 21:52:11 +0900
committerYukihiro Matsumoto <[email protected]>2012-07-03 21:52:11 +0900
commitfc27f71289b84f700efc780ae79eea66f212c0c4 (patch)
tree9aeea40a4ff3d674c11ee4c078169045ee5e874b /src/parse.y
parenta1af20baa9f9a96c2a8cd6a9a1505fe53799e9c9 (diff)
downloadmruby-fc27f71289b84f700efc780ae79eea66f212c0c4.tar.gz
mruby-fc27f71289b84f700efc780ae79eea66f212c0c4.zip
add new function mrb_parser_free()
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parse.y b/src/parse.y
index 63d39ec5f..b0d399a98 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -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)
{