scc

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

commit edbfa2582bdfb774a8be7766e988172802614c5b
parent 6ad775491d80225ba2535288259fbd92d42ba103
Author: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
Date:   Fri, 15 Apr 2016 01:06:08 +0200

[cc2] Clean arena pointer after freeing memory

This mistake generated an invalid access in the second function

Diffstat:
Mcc2/node.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/cc2/node.c b/cc2/node.c @@ -70,6 +70,7 @@ cleannodes(void) free(ap->mem); free(ap); } + arena = NULL; } void