shithub: scc

Download patch

ref: 056904fd8e9e34a544e826450559a39fc5a0f617
parent: 3275da483600d533df8712929ebceb3cbba44d97
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu May 7 05:17:07 EDT 2015

Free auxiliar node in typeof()

The expression in typeof is used only for its type.

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