mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +00: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:
parent
9cc0f8d503
commit
011d40059d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user