From c21645bf0e6ff5542600f94b3a0f6469f7c1c4e5 Mon Sep 17 00:00:00 2001 From: Gabriel Barrantes Date: Sat, 7 Jun 2025 12:36:54 -0600 Subject: [PATCH] Fix memory leak in expand_mmac_params Fixes: #3392758 CVE: CVE-2021-33450 Signed-off-by: Gabriel Barrantes --- asm/preproc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/asm/preproc.c b/asm/preproc.c index 00c0294a..50f203fc 100644 --- a/asm/preproc.c +++ b/asm/preproc.c @@ -5621,6 +5621,7 @@ static Token *expand_mmac_params(Token * tline) tail = &t->next; set_text(t, text, tok_strlen(text)); t->type = type; + nasm_free(text); } changed = true; } else {