From f1e9860ab638594e95db0ada848157b860eeb831 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 1 May 2026 22:42:23 +0300 Subject: add type_mismatch test --- src/debug.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index d229ae6..273fbb0 100644 --- a/src/debug.c +++ b/src/debug.c @@ -156,8 +156,6 @@ void type_mismatch(struct scope *scope, struct ast *node, char *ls = type_str(l); char *rs = type_str(r); semantic_error(scope, node, "type mismatch: %s vs %s\n", ls, rs); - free(ls); - free(rs); } void move_error(struct ast *new_use, struct ast *prev_use) -- cgit v1.2.3