[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH] spapr: fix leak of rev array

From: Emilio G. Cota
Subject: [Qemu-ppc] [PATCH] spapr: fix leak of rev array
Date: Fri, 24 Aug 2018 16:31:01 -0400

Introduced in 04d595b300 ("spapr: do not use CPU_FOREACH_REVERSE",

Fixes: CID1395181
Reported-by: Peter Maydell <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
 hw/ppc/spapr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 4edb6c7d16..505d4c84e5 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -607,6 +607,7 @@ static void spapr_populate_cpus_dt_node(void *fdt, 
sPAPRMachineState *spapr)
         spapr_populate_cpu_dt(cs, fdt, offset, spapr);
+    g_free(rev);
 static uint32_t spapr_pc_dimm_node(MemoryDeviceInfoList *list, ram_addr_t addr)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]