From 1a7597ebe84660f31cb5f5b22904641940ca86ab Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 12 Oct 2011 17:01:59 +0000 Subject: [PATCH] Fixes to various coverity errors --- src/mesh/gnunet-service-mesh.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, { if (j == (CORE_QUEUE_SIZE - 1)) { + GNUNET_free (info); GNUNET_break (0); return GNUNET_OK; } @@ -2143,6 +2144,7 @@ handle_mesh_data_multicast (void *cls, const struct GNUNET_PeerIdentity *peer, { if (i == (CORE_QUEUE_SIZE - 1)) { + GNUNET_free (info); GNUNET_break (0); return GNUNET_OK; } @@ -2342,7 +2344,8 @@ static struct GNUNET_CORE_MessageHandler core_handlers[] = { static int deregister_app (void *cls, const GNUNET_HashCode * key, void *value) { - GNUNET_CONTAINER_multihashmap_remove (applications, key, value); + GNUNET_break (GNUNET_YES == + GNUNET_CONTAINER_multihashmap_remove (applications, key, value)); return GNUNET_OK; } -- 2.25.1