summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTakeshi Watanabe <[email protected]>2018-03-05 10:13:55 +0900
committerGitHub <[email protected]>2018-03-05 10:13:55 +0900
commit0f5cf385b839d6afcaf7a194292bdfce0c4e1b0a (patch)
treeba9e7045e4e5bff3597b514a143cb73e9f1abc3d
parent94aebe31373e1ebd04949d5ad65012128a6150d6 (diff)
downloadmruby-0f5cf385b839d6afcaf7a194292bdfce0c4e1b0a.tar.gz
mruby-0f5cf385b839d6afcaf7a194292bdfce0c4e1b0a.zip
Close `mrb_state` before exit.
-rw-r--r--mrbgems/mruby-test/init_mrbtest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-test/init_mrbtest.c b/mrbgems/mruby-test/init_mrbtest.c
index 17ac1bdef..7678a5200 100644
--- a/mrbgems/mruby-test/init_mrbtest.c
+++ b/mrbgems/mruby-test/init_mrbtest.c
@@ -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);