diff --git a/asm/preproc.c b/asm/preproc.c index ac42131e9..b0835e029 100644 --- a/asm/preproc.c +++ b/asm/preproc.c @@ -1811,6 +1811,9 @@ static Token *delete_Token(Token *t) nasm_assert(t && t->type != TOKEN_FREE); next = t->next; + + if (t->len > INLINE_TEXT) + nasm_free(t->text.p.ptr); nasm_zero(*t); t->type = TOKEN_FREE; t->next = freeTokens;