spapr: fix leak in h_client_architecture_support()
commit2c9dfdacc5a9f4db941c8f80597abae4658954ac
authorGreg Kurz <groug@kaod.org>
Tue, 12 Jun 2018 17:01:26 +0000 (12 19:01 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 16 Jun 2018 06:32:33 +0000 (16 16:32 +1000)
treedccc2537173fc140103cac35d27568d57c76ce44
parente493786c9585d3f1d1a951c46c656821a47f5b34
spapr: fix leak in h_client_architecture_support()

If the negotiated compat mode can't be set, but raw mode is supported,
we decide to ignore the error. An so, we should free it to prevent a
memory leak.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_hcall.c