close pool in toplevel scope

This commit is contained in:
Yukihiro Matsumoto
2012-08-28 02:05:42 +09:00
parent ac789ae61c
commit 376266959f
+2 -1
View File
@@ -2478,7 +2478,8 @@ codegen_start(mrb_state *mrb, parser_state *p)
}
// prepare irep
codegen(scope, p->tree, NOVAL);
if (scope->filename) mrb_free(mrb, scope->filename);
if (scope->filename) mrb_free(mrb, scope->filename);
mrb_pool_close(scope->mpool);
return 0;
}