mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +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;
|
||||
|
||||
cleanup:
|
||||
virDomainNetDefFree(net);
|
||||
VIR_FREE(script);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user