From 681803ed09e244806f73ed901ed6f8382f24d606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20J=2E=20Saraiva?= Date: Mon, 11 Mar 2024 10:10:58 +0000 Subject: [PATCH] Fix memory leak in mips64_get_idling_pc --- stable/mips64.c | 1 + unstable/mips64.c | 1 + 2 files changed, 2 insertions(+) diff --git a/stable/mips64.c b/stable/mips64.c index ad194ecb7..43bfde235 100644 --- a/stable/mips64.c +++ b/stable/mips64.c @@ -290,6 +290,7 @@ int mips64_get_idling_pc(cpu_gen_t *cpu) /* Re-enable IRQ */ mcpu->irq_disable = FALSE; + free(pc_hash); return(0); } diff --git a/unstable/mips64.c b/unstable/mips64.c index 99ff9293b..f3791b289 100644 --- a/unstable/mips64.c +++ b/unstable/mips64.c @@ -292,6 +292,7 @@ int mips64_get_idling_pc(cpu_gen_t *cpu) /* Re-enable IRQ */ mcpu->irq_disable = FALSE; + free(pc_hash); return(0); }