diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-05-01 22:42:23 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-05-01 22:42:23 +0300 |
| commit | f1e9860ab638594e95db0ada848157b860eeb831 (patch) | |
| tree | 8af9cd30f766f39f52e14c83572ee0c002c390a7 /src/debug.c | |
| parent | 47dfe9ab7a4a658ece8b8cca08489d53758b249b (diff) | |
| download | fwd-f1e9860ab638594e95db0ada848157b860eeb831.tar.gz fwd-f1e9860ab638594e95db0ada848157b860eeb831.zip | |
add type_mismatch test
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 2 |
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) |
