aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-10-12 17:01:59 +0000
committerBart Polot <bart@net.in.tum.de>2011-10-12 17:01:59 +0000
commit1a7597ebe84660f31cb5f5b22904641940ca86ab (patch)
tree2b89277a7c2e42613c630b6261a7199a6bcc97b4 /src/mesh
parent4cb7ba24d6bfa8c701902050c373a5ba29813d0e (diff)
downloadgnunet-1a7597ebe84660f31cb5f5b22904641940ca86ab.tar.gz
gnunet-1a7597ebe84660f31cb5f5b22904641940ca86ab.zip
Fixes to various coverity errors
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index d0255a048..cff27272c 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -1975,6 +1975,7 @@ handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer,
1975 { 1975 {
1976 if (j == (CORE_QUEUE_SIZE - 1)) 1976 if (j == (CORE_QUEUE_SIZE - 1))
1977 { 1977 {
1978 GNUNET_free (info);
1978 GNUNET_break (0); 1979 GNUNET_break (0);
1979 return GNUNET_OK; 1980 return GNUNET_OK;
1980 } 1981 }
@@ -2143,6 +2144,7 @@ handle_mesh_data_multicast (void *cls, const struct GNUNET_PeerIdentity *peer,
2143 { 2144 {
2144 if (i == (CORE_QUEUE_SIZE - 1)) 2145 if (i == (CORE_QUEUE_SIZE - 1))
2145 { 2146 {
2147 GNUNET_free (info);
2146 GNUNET_break (0); 2148 GNUNET_break (0);
2147 return GNUNET_OK; 2149 return GNUNET_OK;
2148 } 2150 }
@@ -2342,7 +2344,8 @@ static struct GNUNET_CORE_MessageHandler core_handlers[] = {
2342static int 2344static int
2343deregister_app (void *cls, const GNUNET_HashCode * key, void *value) 2345deregister_app (void *cls, const GNUNET_HashCode * key, void *value)
2344{ 2346{
2345 GNUNET_CONTAINER_multihashmap_remove (applications, key, value); 2347 GNUNET_break (GNUNET_YES ==
2348 GNUNET_CONTAINER_multihashmap_remove (applications, key, value));
2346 return GNUNET_OK; 2349 return GNUNET_OK;
2347} 2350}
2348 2351