mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Free mrbc_context on exit from mruby.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user