aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/pc.y b/pc.y
index d679c18..426cf71 100644
--- a/pc.y
+++ b/pc.y
@@ -97,6 +97,7 @@ program
{
set_ret_type($9);
print_tree($9);
+ free_tree($4);
}
;
@@ -164,6 +165,7 @@ sub_prog_declaration
{
set_ret_type($4);
print_tree($4);
+ free_tree($4);
pop_scope(&cur_scope);
}
;