aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scope.c2
-rw-r--r--tree.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 0355014..8b70c5b 100644
--- a/scope.c
+++ b/scope.c
@@ -36,6 +36,8 @@ scope *s;
free_list(s->table[i]);
}
+ /*free_list takes care of freeing s->ret_var*/
+
free(s);
s = NULL;
}
diff --git a/tree.c b/tree.c
index d59fd18..2b6bd9d 100644
--- a/tree.c
+++ b/tree.c
@@ -246,4 +246,6 @@ ptree *t;
free_tree(t->l);
free_tree(t->r);
free(t);
+
+ /*t->attr.nval freed in free_scope*/
}