shithub: scc

Download patch

ref: 047f9b79d1942d292ee3718858be7c6fb1002320
parent: 6b911721fbe864d1966a471c6b0f111ea5083aaf
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Jul 22 04:56:59 EDT 2015

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.

--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -51,6 +51,7 @@
 	 * 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);
 }