diff options
-rw-r--r-- | scope.c | 2 | ||||
-rw-r--r-- | tree.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -36,6 +36,8 @@ scope *s; free_list(s->table[i]); } + /*free_list takes care of freeing s->ret_var*/ + free(s); s = NULL; } @@ -246,4 +246,6 @@ ptree *t; free_tree(t->l); free_tree(t->r); free(t); + + /*t->attr.nval freed in free_scope*/ } |