spapr: Fixes a leak in CAS
commitf767b1ac5766fcc48cc3939eeb7db7b95b98408b
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 23 Aug 2019 02:39:57 +0000 (23 12:39 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 00:25:23 +0000 (4 10:25 +1000)
tree43d9adf64b350ad665b879a89d2305c4ee09b928
parentdb5127b28ae1113bbc10f843d1cd219dc90a52d1
spapr: Fixes a leak in CAS

Add a missing g_free(fdt) if the resulting tree is bigger
than the space allocated by SLOF.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/spapr.c