x86: fix memory leak in pvh_setup_acpi_xsdt
authorWei Liu <wei.liu2@citrix.com>
Sun, 26 Feb 2017 15:49:32 +0000 (15:49 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 27 Feb 2017 11:26:28 +0000 (11:26 +0000)
commit2f63fa20fa5b040c2a3ecd031ecaa1c62716ad1d
treed963967c077c86737c73327e73414998019c1986
parentf597c3f307d73a874638619257c2040ec0139887
x86: fix memory leak in pvh_setup_acpi_xsdt

Switch to use goto style error handling to avoid leaking xsdt.

Coverity-ID: 1401535

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain_build.c