mirror of https://github.com/YosysHQ/yosys.git
Fix TOK_ID memory leak in for_initialization
This commit is contained in:
parent
15fb0107dc
commit
9658d2e337
|
@ -2674,6 +2674,7 @@ for_initialization:
|
|||
AstNode *node = new AstNode(AST_ASSIGN_EQ, ident, $3);
|
||||
ast_stack.back()->children.push_back(node);
|
||||
SET_AST_NODE_LOC(node, @1, @3);
|
||||
delete $1;
|
||||
} |
|
||||
non_io_wire_type range TOK_ID {
|
||||
frontend_verilog_yyerror("For loop variable declaration is missing initialization!");
|
||||
|
|
Loading…
Reference in New Issue