Fixed memory leak in ilang frontend

This commit is contained in:
Clifford Wolf 2013-05-23 12:55:59 +02:00
parent e04d88cf22
commit 375f83c5ec
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ attr_stmt:
TOK_ATTRIBUTE TOK_ID constant TOK_EOL { TOK_ATTRIBUTE TOK_ID constant TOK_EOL {
attrbuf[$2] = *$3; attrbuf[$2] = *$3;
delete $3; delete $3;
free($2);
}; };
wire_stmt: wire_stmt: