diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 14:56:16 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 14:56:16 +0100 |
commit | 212ed58b037f46775cb7cbd46cf07b9b6afe357d (patch) | |
tree | 28cfd4aad75c7355c0da5849481dfa7cde3bd6d0 /src | |
parent | e9e7baf5bec50929acf2b79cdcd1af17ce0e9b3f (diff) |
Remove debug code
Diffstat (limited to 'src')
-rw-r--r-- | src/c8asm/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
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); } |