virNodeDevCapScsiHostParseXML: avoid an unconditional leak
* src/conf/node_device_conf.c (virNodeDevCapScsiHostParseXML): Free the "nodes" buffer allocated by virXPathNodeSet.
This commit is contained in:
parent
59467601c2
commit
e977f471f1
@ -797,6 +797,7 @@ virNodeDevCapScsiHostParseXML(xmlXPathContextPtr ctxt,
|
|||||||
out:
|
out:
|
||||||
VIR_FREE(type);
|
VIR_FREE(type);
|
||||||
ctxt->node = orignode;
|
ctxt->node = orignode;
|
||||||
|
VIR_FREE(nodes);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user