Commit 767128b
committed
Free duplicate enums rejected during parsing
Delete the temporary EnumDef in Parser::StartEnum() when duplicate-name registration fails so duplicate enum/union declarations do not leak during parsing.1 parent 29f6b07 commit 767128b
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3126 | 3126 | | |
3127 | 3127 | | |
3128 | 3128 | | |
3129 | | - | |
| 3129 | + | |
| 3130 | + | |
3130 | 3131 | | |
| 3132 | + | |
3131 | 3133 | | |
3132 | 3134 | | |
3133 | 3135 | | |
| |||
0 commit comments