From: John Ferlan Date: Mon, 27 Apr 2015 19:02:42 +0000 (-0400) Subject: conf: Resolve some Coverity errors X-Git-Tag: v1.2.15-rc2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e505591e28a3bc84f4647afdd6df6884bd939e48;p=thirdparty%2Flibvirt.git conf: Resolve some Coverity errors Resolve some Coverity errors with IOThread changes Signed-off-by: John Ferlan --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 957221b72b..fc48ed5a5f 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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"))) {