aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-10-03 12:46:54 +0200
committerDamjan Marion <dmarion@me.com>2018-10-03 16:08:25 +0000
commit5bdd55831e65ffd7bb0122bf31a6c07ef8f5138a (patch)
treeee251cf4f2bc7392b788dd82ca7717bec124c126 /src/vpp-api
parent3c6015b03480938bc8dc66405096fecf47ed6c0c (diff)
stat_client.c coverity error.
Change-Id: Ic072beb8882981425f436936f239e8c8bf229a99 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vpp-api')
-rw-r--r--src/vpp-api/client/stat_client.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vpp-api/client/stat_client.c b/src/vpp-api/client/stat_client.c
index d415972de68..1c099edc789 100644
--- a/src/vpp-api/client/stat_client.c
+++ b/src/vpp-api/client/stat_client.c
@@ -121,14 +121,12 @@ stat_segment_connect (char *socket_name)
if (fstat (mfd, &st) == -1)
{
- close (sock);
perror ("mmap");
return -1;
}
if ((memaddr =
mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, mfd, 0)) == MAP_FAILED)
{
- close (sock);
perror ("mmap");
return -1;
}