提交 c585334b 编写于 作者: J John Ferlan

xenconfig: Resolve Coverity RESOURCE_LEAK

Since '337a1362' - Coverity complains that 'net' is VIR_ALLOC()'d, but
on various 'cleanup' exit paths from the code there is no corresponding
cleanup.
上级 cc1bbbbe
......@@ -960,6 +960,7 @@ xenParseVif(virConfPtr conf, virDomainDefPtr def)
return 0;
cleanup:
virDomainNetDefFree(net);
VIR_FREE(script);
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册