From: Gonglei <arei.gong...@huawei.com> get_boot_devices_list() will malloc memory, spapr_finalize_fdt doesn't free it.
Signed-off-by: Chenliang <chenlian...@huawei.com> Signed-off-by: Gonglei <arei.gong...@huawei.com> Signed-off-by: Alexander Graf <ag...@suse.de> --- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 0adea31..522ee27 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -783,6 +783,7 @@ static void spapr_finalize_fdt(sPAPREnvironment *spapr, cpu_physical_memory_write(fdt_addr, fdt, fdt_totalsize(fdt)); + g_free(bootlist); g_free(fdt); } -- 1.8.1.4