Fix a memory leak in mirb

This commit is contained in:
h2so5
2013-04-08 23:38:01 +09:00
parent 5dea19e9be
commit 22f50fe32e
+1 -1
View File
@@ -337,9 +337,9 @@ main(int argc, char **argv)
}
ruby_code[0] = '\0';
last_code_line[0] = '\0';
mrb_parser_free(parser);
mrb_gc_arena_restore(mrb, ai);
}
mrb_parser_free(parser);
}
mrbc_context_free(mrb, cxt);
mrb_close(mrb);