diff options
-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); } |