summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2026-07-26 19:20:30 -0700
committerCarson Fleming <cflems@cflems.net>2026-07-26 19:20:30 -0700
commit4f9d0247549b06ddb25b76bb425541190105cb48 (patch)
tree56f191c3611fc7509e6350138ce03c20956b656f /ast.c
parent6a169de321b131e73b86967a1a8564365217275a (diff)
downloadccc-4f9d0247549b06ddb25b76bb425541190105cb48.tar.gz
functioning type system perhaps?
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index 50470de..df3b7f6 100644
--- a/ast.c
+++ b/ast.c
@@ -119,6 +119,8 @@ static void expr_destroy(struct expr_node* node) {
binary_destroy(&node->inner.binary);
break;
}
+
+ if (node->resolved_type != NULL) free(node->resolved_type);
}
static void if_destroy(struct if_node* node) {