commit 047f9b79d1942d292ee3718858be7c6fb1002320
parent 6b911721fbe864d1966a471c6b0f111ea5083aaf
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 22 Jul 2015 08:56:59 +0200
Free memory in arydcl()
The constant expression is used only to take
the size of the array, and after this usage
it is never used.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/cc1/decl.c b/cc1/decl.c
@@ -51,6 +51,7 @@ arydcl(struct dcldata *dp)
* is the correct, that in this case should be int
*/
n = (np == NULL) ? 0 : np->sym->u.i;
+ freetree(np);
return queue(dp, ARY, n, NULL);
}