From 011d40059d328e0bbfcfdb10de1a4bc0bcd11464 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Tue, 22 Jan 2013 09:41:03 -0500 Subject: [PATCH] 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. --- 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 268dada5af..21255f0adc 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; }