Free parse result under -c

This commit is contained in:
John Hawthorn 2024-11-20 23:06:34 -08:00
parent b4d13fac3d
commit a8ebc596d6
Notes: git 2024-11-23 03:25:20 +00:00

5
ruby.c
View File

@ -2566,7 +2566,10 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
if (dump & DUMP_BIT(syntax)) {
printf("Syntax OK\n");
dump &= ~DUMP_BIT(syntax);
if (!dump) return Qtrue;
if (!dump) {
dispose_result();
return Qtrue;
}
}
if (dump & DUMP_BIT(parsetree)) {