diff options
author | Emilio G. Cota <cota@braap.org> | 2018-08-24 16:31:01 -0400 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-08-28 11:31:23 +1000 |
commit | eceba3477e7fa9b2c0a711a60edbdb7bfa8e4dcd (patch) | |
tree | 8b7ec3850eccf0d4738139f97fb241aeb59813e5 /hw/ppc | |
parent | a69dc537cc1a6d3c3cb35d30197ed45914a150c3 (diff) |
spapr: fix leak of rev array
Introduced in 04d595b300 ("spapr: do not use CPU_FOREACH_REVERSE",
2018-08-23)
Fixes: CID1395181
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/spapr.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |