[hackers] [scc] Free memory in arydcl() || Roberto E. Vargas Caballero
commit 047f9b79d1942d292ee3718858be7c6fb1002320
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Jul 22 08:56:59 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Jul 22 08:56:59 2015 +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.
diff --git a/cc1/decl.c b/cc1/decl.c
index c809c9a..3cbe432 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -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);
}
Received on Wed Jul 22 2015 - 18:01:42 CEST
This archive was generated by hypermail 2.3.0
: Wed Jul 22 2015 - 18:12:12 CEST