]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr.c
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)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 17 Jul 2017 05:07:05 +0000 (15:07 +1000)
commitdf8658de43db242ea82183d75cc957c2b0fa013a
tree4b9beb71756951d5aad7849a345ac0a8b9f5abc6
parentb55d295e3ec98e46f5b39d50e4a3a9725b4289b3
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>
hw/ppc/spapr.c