From de75daca144d517267f0f00159392cc0354792b2 Mon Sep 17 00:00:00 2001 From: pelijah Date: Fri, 5 Apr 2024 03:29:49 +0300 Subject: [PATCH] Fix memleak in x86.nz asm plugin (#4416) --- librz/arch/p/asm/asm_x86_nz.c | 1 + 1 file changed, 1 insertion(+) diff --git a/librz/arch/p/asm/asm_x86_nz.c b/librz/arch/p/asm/asm_x86_nz.c index a3658894333..f0b779a3154 100644 --- a/librz/arch/p/asm/asm_x86_nz.c +++ b/librz/arch/p/asm/asm_x86_nz.c @@ -5209,6 +5209,7 @@ static int oprep(RzAsm *a, ut8 *data, const Opcode *op) { if (instr.has_bnd) { retval++; } + free(instr.mnemonic); return l + retval; } break;