]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
conf: Resolve some Coverity errors
authorJohn Ferlan <jferlan@redhat.com>
Mon, 27 Apr 2015 19:02:42 +0000 (15:02 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 28 Apr 2015 10:13:34 +0000 (06:13 -0400)
Resolve some Coverity errors with IOThread changes

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/domain_conf.c

index 957221b72bd9d5b95dc7cbaed83920e0cf136806..fc48ed5a5f6da0da775423cbc995f854c8c447b6 100644 (file)
@@ -13253,6 +13253,7 @@ virDomainIOThreadIDDefParseXML(xmlNodePtr node,
 
  error:
     virDomainIOThreadIDDefFree(iothrid);
+    iothrid = NULL;
     goto cleanup;
 }
 
@@ -13372,6 +13373,7 @@ virDomainIOThreadPinDefParseXML(xmlNodePtr node,
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        _("Cannot find 'iothread' : %u"),
                        iothreadid);
+        goto cleanup;
     }
 
     if (!(tmp = virXMLPropString(node, "cpuset"))) {