mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
+1
-1
@@ -124,7 +124,7 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args)
|
||||
static void
|
||||
cleanup(mrb_state *mrb, struct _args *args)
|
||||
{
|
||||
if (args->rfp)
|
||||
if (args->rfp && args->rfp != stdin)
|
||||
fclose(args->rfp);
|
||||
if (args->cmdline)
|
||||
mrb_free(mrb, args->cmdline);
|
||||
|
||||
Reference in New Issue
Block a user