mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
xenconfig: Resolve Coverity RESOURCE_LEAK
Since '337a13628' - Coverity complains that 'net' is VIR_ALLOC()'d, but on various 'cleanup' exit paths from the code there is no corresponding cleanup.
This commit is contained in:
parent
cc1bbbbeba
commit
c585334bdd
@ -960,6 +960,7 @@ xenParseVif(virConfPtr conf, virDomainDefPtr def)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
virDomainNetDefFree(net);
|
||||||
VIR_FREE(script);
|
VIR_FREE(script);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user