summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ast.c b/ast.c
index f224e72..22d3181 100644
--- a/ast.c
+++ b/ast.c
@@ -25,8 +25,6 @@ static void expr_list_destroy(struct expr_list_node* node) {
expr_list_destroy(node->next);
free(node->next);
}
-
- if (node->resolved_type != NULL) free(node->resolved_type);
}
static void assign_destroy(struct assign_node* node) {
@@ -136,8 +134,6 @@ static void expr_destroy(struct expr_node* node) {
paren_destroy(&node->inner.paren);
break;
}
-
- if (node->resolved_type != NULL) free(node->resolved_type);
}
static void if_destroy(struct if_node* node) {