Fixed memory leak in ilang frontend
authorClifford Wolf <clifford@clifford.at>
Thu, 23 May 2013 10:55:59 +0000 (12:55 +0200)
committerClifford Wolf <clifford@clifford.at>
Thu, 23 May 2013 10:55:59 +0000 (12:55 +0200)
frontends/ilang/parser.y

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