Re: [Xen-devel] [PATCH 1/2] x86: fix memory leak in pvh_setup_acpi_madt

2017-02-27 Thread Roger Pau Monné
On Sun, Feb 26, 2017 at 03:49:31PM +, Wei Liu wrote: > Switch to use goto style error handling to avoid leaking madt. Thanks, I guess it's fine to don't leak memory here, but in any case this is doomed to fail, no further progress is going to be made if Dom0 build fails, hence that's why memor

[Xen-devel] [PATCH 1/2] x86: fix memory leak in pvh_setup_acpi_madt

2017-02-26 Thread Wei Liu
Switch to use goto style error handling to avoid leaking madt. Coverity-ID: 1401534 Signed-off-by: Wei Liu --- xen/arch/x86/domain_build.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c index 05348