Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! ExprOpHasAttr: delete losts objects
Browse files Browse the repository at this point in the history
formals
  • Loading branch information
Et7f3 committed Feb 12, 2023
1 parent ec8ff62 commit 5e889c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libexpr/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,9 @@ expr_list

formals
: formal ',' formals
{ $$ = $3; $$->formals.push_back(*$1); }
{ $$ = $3; $$->formals.emplace_back(*$1); delete $1; }
| formal
{ $$ = new ParserFormals; $$->formals.push_back(*$1); $$->ellipsis = false; }
{ $$ = new ParserFormals; $$->formals.emplace_back(*$1); $$->ellipsis = false; delete $1; }
|
{ $$ = new ParserFormals; $$->ellipsis = false; }
| ELLIPSIS
Expand Down

0 comments on commit 5e889c9

Please sign in to comment.