From c585334bdd97f516dfe362373ff62b5a492cb5e2 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Fri, 22 Aug 2014 11:06:49 -0400 Subject: [PATCH] xenconfig: Resolve Coverity RESOURCE_LEAK Since '337a13628' - Coverity complains that 'net' is VIR_ALLOC()'d, but on various 'cleanup' exit paths from the code there is no corresponding cleanup. --- src/xenconfig/xen_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenconfig/xen_common.c b/src/xenconfig/xen_common.c index 398e9ec4c3..2f53c633af 100644 --- a/src/xenconfig/xen_common.c +++ b/src/xenconfig/xen_common.c @@ -960,6 +960,7 @@ xenParseVif(virConfPtr conf, virDomainDefPtr def) return 0; cleanup: + virDomainNetDefFree(net); VIR_FREE(script); return -1; } -- 2.47.2