[libvirt] [PATCH 8/9] network: Add coverity[leaked_handle] to ignore error

John Ferlan jferlan at redhat.com
Tue Jan 22 14:41:03 UTC 2013


On error, the 'tapfd' in networkStartNetworkVirtual() is synonymous
with 'macTapIfName' and will be closed in the appropriate error path.
---
 src/network/bridge_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index 268dada..21255f0 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -2530,6 +2530,7 @@ networkStartNetworkVirtual(struct network_driver *driver,
         virSetError(save_err);
         virFreeError(save_err);
     }
+    /* coverity[leaked_handle] - 'tapfd' is not leaked */
     return -1;
 }
 
-- 
1.7.11.7




More information about the libvir-list mailing list