From: Michal Privoznik Date: Fri, 4 Aug 2017 13:11:59 +0000 (+0200) Subject: virNodeDevCapCCWParseXML: Free temporary variables X-Git-Tag: v3.7.0-rc1~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d533297a00199089cc55ae409efe33c9f5088cd;p=thirdparty%2Flibvirt.git virNodeDevCapCCWParseXML: Free temporary variables Again, we are using @cssid, @ssid and @devno to store some temporary strings, but never free it. Signed-off-by: Michal Privoznik --- diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c index 82f02fa6c8..726bf042c8 100644 --- a/src/conf/node_device_conf.c +++ b/src/conf/node_device_conf.c @@ -792,6 +792,9 @@ virNodeDevCapCCWParseXML(xmlXPathContextPtr ctxt, out: ctxt->node = orignode; + VIR_FREE(cssid); + VIR_FREE(ssid); + VIR_FREE(devno); return ret; }