Free mrbc_context on exit from mruby.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-09-05 07:58:36 +09:00
parent ade7185a2b
commit b01b0d242b
+2 -1
View File
@@ -258,7 +258,8 @@ main(int argc, char **argv)
for (i = 0; i < args.libc; i++) {
FILE *lfp = fopen(args.libv[i], args.mrbfile ? "rb" : "r");
if (lfp == NULL) {
printf("Cannot open library file. (%s)\n", args.libv[i]);
printf("Cannot open library file: %s\n", args.libv[i]);
mrbc_context_free(mrb, c);
cleanup(mrb, &args);
return EXIT_FAILURE;
}