scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 056904fd8e9e34a544e826450559a39fc5a0f617
parent 3275da483600d533df8712929ebceb3cbba44d97
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  7 May 2015 09:17:07 +0200

Free auxiliar node in typeof()

The expression in typeof is used only for its type.

Diffstat:
Mcc1/expr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -550,7 +550,7 @@ typeof(Node *np) if (np == NULL) unexpected(); tp = np->type; - /* TODO: free np */ + freetree(np); return tp; }