File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ expr_simple
311
311
[&](std::string_view str) { $$ = new ExprString(state->alloc, str); },
312
312
[&](Expr * expr) { $$ = expr; }},
313
313
*$2);
314
+ delete $2;
314
315
}
315
316
| IND_STRING_OPEN ind_string_parts IND_STRING_CLOSE {
316
317
$$ = state->stripIndentation(CUR_POS, std::move(*$2));
@@ -471,6 +472,7 @@ attrs
471
472
});
472
473
}
473
474
}, *$2);
475
+ delete $2;
474
476
}
475
477
| { $$ = new std::vector<std::pair<AttrName, PosIdx>>; }
476
478
;
@@ -483,6 +485,7 @@ attrpath
483
485
[&](std::string_view str) { $$ ->push_back (AttrName(state->symbols.create(str))); },
484
486
[&](Expr * expr) { $$ ->push_back (AttrName(expr)); }
485
487
}, *$3);
488
+ delete $3;
486
489
}
487
490
| attr { $$ = new std::vector<AttrName>; $$->push_back(AttrName(state->symbols.create($1))); }
488
491
| string_attr
@@ -491,6 +494,7 @@ attrpath
491
494
[&](std::string_view str) { $$ ->push_back (AttrName(state->symbols.create(str))); },
492
495
[&](Expr * expr) { $$ ->push_back (AttrName(expr)); }
493
496
}, *$1);
497
+ delete $1;
494
498
}
495
499
;
496
500
You can’t perform that action at this time.
0 commit comments