From 212ed58b037f46775cb7cbd46cf07b9b6afe357d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 13 Feb 2024 14:56:16 +0100 Subject: Remove debug code --- src/c8asm/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/c8asm') diff --git a/src/c8asm/main.c b/src/c8asm/main.c index edc595b..0c8a28a 100644 --- a/src/c8asm/main.c +++ b/src/c8asm/main.c @@ -99,11 +99,7 @@ asmfile(int fd, const char *fn) baseptr = u8strfit(&sb)->p; assemble(stdout, ast = parsefile(toks = lexfile(u8strtou8(sb)))); - da_foreach (&ast, node) { - if (node->kind == D_INSTR && node->instr.kind == I_DB) - free(node->instr.buf); - } - free(toks.buf); + free(ast.buf); u8strfree(sb); } -- cgit v1.2.3