aboutsummaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-08-10 16:56:16 -0400
committerDave Barach <dave@barachs.net>2016-08-10 16:56:32 -0400
commitdd522cbaf421de7b34887fb8c33981c4ebca9201 (patch)
tree79dab4a6a205d683b77e21f92514923c952195e0 /vlib
parent839fe3e6d65dbbd7cd102a22a7259d2556b7410a (diff)
VPP-189 Fix coverity warnings
Change-Id: Iea6d338e60a95f7f30c10c2e751d4827e816f700 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/unix/mc_socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vlib/vlib/unix/mc_socket.c b/vlib/vlib/unix/mc_socket.c
index 2754b302875..9c12ad3b559 100644
--- a/vlib/vlib/unix/mc_socket.c
+++ b/vlib/vlib/unix/mc_socket.c
@@ -948,6 +948,7 @@ find_interface_ip4_address (char *if_name, u32 * ip4_address, u32 * mtu)
if (ioctl (fd, SIOCGIFADDR, &ifr) < 0)
{
clib_unix_error ("ioctl(SIOCFIGADDR)");
+ close (fd);
return -1;
}