mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 22:23:23 +00:00
sv: fix a few struct and enum memory leaks
This commit is contained in:
parent
2b8f1633ce
commit
4446cfa524
2 changed files with 11 additions and 2 deletions
|
@ -1711,10 +1711,12 @@ member_type_token:
|
|||
delete astbuf1;
|
||||
astbuf1 = template_node;
|
||||
}
|
||||
| struct_union {
|
||||
| {
|
||||
delete astbuf1;
|
||||
} struct_union {
|
||||
// stash state on ast_stack
|
||||
ast_stack.push_back(astbuf2);
|
||||
astbuf2 = $1;
|
||||
astbuf2 = $2;
|
||||
} struct_body {
|
||||
astbuf1 = astbuf2;
|
||||
// recover state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue