From: Chenliang <chenlian...@huawei.com> get_boot_devices_list will malloc some memory, spapr_finalize_fdt doesn't free it.
Signed-off-by: Chenliang <chenlian...@huawei.com> Signed-off-by: Gonglei <arei.gong...@huawei.com> --- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 82f183f..502868e 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -795,6 +795,7 @@ static void spapr_finalize_fdt(sPAPREnvironment *spapr, } ret = fdt_setprop_string(fdt, offset, "qemu,boot-list", bootlist); + g_free(bootlist); } if (!spapr->has_graphics) { -- 1.7.12.4