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:
John Ferlan 2014-08-22 11:06:49 -04:00
parent cc1bbbbeba
commit c585334bdd

View File

@ -960,6 +960,7 @@ xenParseVif(virConfPtr conf, virDomainDefPtr def)
return 0;
cleanup:
virDomainNetDefFree(net);
VIR_FREE(script);
return -1;
}