mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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.
This commit is contained in:
committed by
Michal Privoznik
parent
9cc0f8d503
commit
011d40059d
@@ -2530,6 +2530,7 @@ networkStartNetworkVirtual(struct network_driver *driver,
|
||||
virSetError(save_err);
|
||||
virFreeError(save_err);
|
||||
}
|
||||
/* coverity[leaked_handle] - 'tapfd' is not leaked */
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user