mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
virNWFilterDefParseXML: avoid leak on error paths
* src/conf/nwfilter_conf.c (virNWFilterDefParseXML): Also free "ret" via cleanup.
This commit is contained in:
parent
43beb82eca
commit
bc5443f4c6
@ -1767,6 +1767,7 @@ virNWFilterDefParseXML(xmlXPathContextPtr ctxt) {
|
||||
return ret;
|
||||
|
||||
cleanup:
|
||||
virNWFilterDefFree(ret);
|
||||
VIR_FREE(chain);
|
||||
VIR_FREE(uuid);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user