diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-29 21:29:24 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-29 21:29:24 -0400 |
commit | 82dc3cf8d980b010a1cf2e3ac1c438c1412a21f8 (patch) | |
tree | 5012f9871c560b9d77bc67dc04db7e51be8d8f4b | |
parent | aa3c988854bde354efd1dbcb3d85efcc56ad9cd2 (diff) |
Add notes on location of frees
-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*/ } |