mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Free parse result under -c
This commit is contained in:
parent
b4d13fac3d
commit
a8ebc596d6
Notes:
git
2024-11-23 03:25:20 +00:00
1 changed files with 4 additions and 1 deletions
5
ruby.c
5
ruby.c
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue