diff options
-rw-r--r-- | makefile | 4 | ||||
-rw-r--r-- | node.c | 13 |
2 files changed, 15 insertions, 2 deletions
@@ -1,5 +1,5 @@ -CC = tcc -FLAGS = -g +CC = gcc +FLAGS = -g -O0 YACC = yacc LEX = lex @@ -54,8 +54,21 @@ node *n; for(tmp = n; tmp;) { n = tmp->next; + + free(tmp->name); + tmp->name = NULL; + + if (tmp->func_info) + free(tmp->func_info); + tmp->func_info = NULL; + + if (tmp->array_info) + free(tmp->array_info); + tmp->array_info = NULL; + free(tmp); tmp = NULL; + tmp = n; } } |