From: Jim Meyering Date: Mon, 15 Feb 2010 18:54:45 +0000 (+0100) Subject: virNodeDevCapScsiHostParseXML: avoid an unconditional leak X-Git-Tag: v0.7.7~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e977f471f14632fef3b3a6a51a0ab4d4ef5660c0;p=thirdparty%2Flibvirt.git virNodeDevCapScsiHostParseXML: avoid an unconditional leak * src/conf/node_device_conf.c (virNodeDevCapScsiHostParseXML): Free the "nodes" buffer allocated by virXPathNodeSet. --- diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c index 4b65953c8f..09c0f41672 100644 --- a/src/conf/node_device_conf.c +++ b/src/conf/node_device_conf.c @@ -797,6 +797,7 @@ virNodeDevCapScsiHostParseXML(xmlXPathContextPtr ctxt, out: VIR_FREE(type); ctxt->node = orignode; + VIR_FREE(nodes); return ret; }