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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]