qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

spapr: Fix memory leak in h_client_architecture_support()

This is the only error path that needs to free the previously allocated
ov1.

Reported-by: Coverity (CID 1421924)
Fixes: cbd0d7f36322 "spapr: Fail CAS if option vector table cannot be parsed"
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <158481206205.336182.16106097429336044843.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>

authored by

Greg Kurz and committed by
David Gibson
ce05fa0f feb39b62

+1
+1
hw/ppc/spapr_hcall.c
··· 1726 1726 } 1727 1727 ov5_guest = spapr_ovec_parse_vector(ov_table, 5); 1728 1728 if (!ov5_guest) { 1729 + spapr_ovec_cleanup(ov1_guest); 1729 1730 warn_report("guest didn't provide option vector 5"); 1730 1731 return H_PARAMETER; 1731 1732 }