aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-05-01 22:42:23 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2026-05-01 22:42:23 +0300
commitf1e9860ab638594e95db0ada848157b860eeb831 (patch)
tree8af9cd30f766f39f52e14c83572ee0c002c390a7 /src
parent47dfe9ab7a4a658ece8b8cca08489d53758b249b (diff)
downloadfwd-f1e9860ab638594e95db0ada848157b860eeb831.tar.gz
fwd-f1e9860ab638594e95db0ada848157b860eeb831.zip
add type_mismatch test
Diffstat (limited to 'src')
-rw-r--r--src/debug.c2
1 files changed, 0 insertions, 2 deletions
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)