From: Xiretza Date: Thu, 18 Mar 2021 20:52:06 +0000 (+0100) Subject: verilog: fix leaking of type names in parser X-Git-Tag: yosys-0.10~133 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6681508f1a2e35d41e8fc6f1f5dec41972ef6fd;p=yosys.git verilog: fix leaking of type names in parser --- diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y index 7d750ea28..1a76d0dea 100644 --- a/frontends/verilog/verilog_parser.y +++ b/frontends/verilog/verilog_parser.y @@ -692,6 +692,7 @@ wire_type_token: astbuf3->is_custom_type = true; astbuf3->children.push_back(new AstNode(AST_WIRETYPE)); astbuf3->children.back()->str = *$1; + delete $1; } | TOK_WOR { astbuf3->is_wor = true; @@ -1458,6 +1459,7 @@ param_type: astbuf1->is_custom_type = true; astbuf1->children.push_back(new AstNode(AST_WIRETYPE)); astbuf1->children.back()->str = *$1; + delete $1; }; param_decl: