mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Close mrb_state before exit.
This commit is contained in:
@@ -31,6 +31,7 @@ mrb_init_mrbtest(mrb_state *mrb)
|
||||
|
||||
if (mrb->exc) {
|
||||
mrb_print_error(mrb);
|
||||
mrb_close(mrb);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
mrb_close(core_test);
|
||||
|
||||
Reference in New Issue
Block a user