]> xenbits.xensource.com Git - libvirt.git/commitdiff
network: Add coverity[leaked_handle] to ignore error
authorJohn Ferlan <jferlan@redhat.com>
Tue, 22 Jan 2013 14:41:03 +0000 (09:41 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 22 Jan 2013 15:59:46 +0000 (16:59 +0100)
On error, the 'tapfd' in networkStartNetworkVirtual() is synonymous
with 'macTapIfName' and will be closed in the appropriate error path.

src/network/bridge_driver.c

index 268dada5afa38b973a4a27198b4d253be9d16efe..21255f0adc8ea81bc68e2023c86dceb724fe9741 100644 (file)
@@ -2530,6 +2530,7 @@ networkStartNetworkVirtual(struct network_driver *driver,
         virSetError(save_err);
         virFreeError(save_err);
     }
+    /* coverity[leaked_handle] - 'tapfd' is not leaked */
     return -1;
 }