Skip to content

Commit a8ebc59

Browse files
committed
Free parse result under -c
1 parent b4d13fa commit a8ebc59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ruby.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2566,7 +2566,10 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
25662566
if (dump & DUMP_BIT(syntax)) {
25672567
printf("Syntax OK\n");
25682568
dump &= ~DUMP_BIT(syntax);
2569-
if (!dump) return Qtrue;
2569+
if (!dump) {
2570+
dispose_result();
2571+
return Qtrue;
2572+
}
25702573
}
25712574

25722575
if (dump & DUMP_BIT(parsetree)) {

0 commit comments

Comments
 (0)