aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-09-15 21:59:28 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-09-15 21:59:28 -0400
commitf1c409f77d453878f41a2acc066eaba396333156 (patch)
treeb6ead91f2d1dc571792050ea84f2f29549039e23
parentfda3c8546d56b17a1921e495ebc08bc429f06582 (diff)
Fix free whole program tree not id_list
-rw-r--r--pc.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/pc.y b/pc.y
index 4a2d664..673de92 100644
--- a/pc.y
+++ b/pc.y
@@ -97,7 +97,7 @@ program
{
set_ret_type($9);
print_tree($9);
- free_tree($4);
+ free_tree($9);
#ifdef DEBUG
print_scope(cur_scope);
#endif