diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-07-26 12:45:33 +0800 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-09-08 12:50:47 +0200 |
commit | a21a7a701252717f05defee8a1a33d72c28fabb7 (patch) | |
tree | b73184d83b682b706552a826c500fda7435e2d2e /hw/ppc | |
parent | 261265cc912b375649fcdf7aded0f87359dba544 (diff) | |
download | qemu-a21a7a701252717f05defee8a1a33d72c28fabb7.tar.gz qemu-a21a7a701252717f05defee8a1a33d72c28fabb7.tar.bz2 qemu-a21a7a701252717f05defee8a1a33d72c28fabb7.zip |
spapr: fix possible memory leak
get_boot_devices_list() will malloc memory, spapr_finalize_fdt
doesn't free it.
Signed-off-by: Chenliang <chenliang88@huawei.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
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 0adea311cc..522ee27045 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); } |