]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: fix memory leak in spapr_core_pre_plug()
authorGreg Kurz <groug@kaod.org>
Fri, 14 Jul 2017 07:50:40 +0000 (09:50 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 24 Aug 2017 23:07:16 +0000 (18:07 -0500)
commit2a7526b0ce649b5c3b06790b9ea7a7b318d38ef4
tree198f8c4c02d77ada374439eaa748eb1a795356ed
parent2e40aad231fbb8944bc2557fd9dce0d4e8d2523e
spapr: fix memory leak in spapr_core_pre_plug()

In case of error, we must ensure the dynamically allocated base_core_type
is freed, like it is done everywhere else in this function.

This is a regression introduced in QEMU 2.9 by commit 8149e2992f78.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
(cherry picked from commit df8658de43db242ea82183d75cc957c2b0fa013a)
 Conflicts:
hw/ppc/spapr.c
* fix context dep on 459264ef2
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr.c