提交 011d4005 编写于 作者: J John Ferlan 提交者: Michal Privoznik

network: Add coverity[leaked_handle] to ignore error

On error, the 'tapfd' in networkStartNetworkVirtual() is synonymous
with 'macTapIfName' and will be closed in the appropriate error path.
上级 9cc0f8d5
...@@ -2530,6 +2530,7 @@ networkStartNetworkVirtual(struct network_driver *driver, ...@@ -2530,6 +2530,7 @@ networkStartNetworkVirtual(struct network_driver *driver,
virSetError(save_err); virSetError(save_err);
virFreeError(save_err); virFreeError(save_err);
} }
/* coverity[leaked_handle] - 'tapfd' is not leaked */
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册