summaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-service-dht_hello.c')
-rw-r--r--src/dht/gnunet-service-dht_hello.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht_hello.c b/src/dht/gnunet-service-dht_hello.c
index 7b22e928f..906391334 100644
--- a/src/dht/gnunet-service-dht_hello.c
+++ b/src/dht/gnunet-service-dht_hello.c
@@ -86,8 +86,7 @@ process_hello (void *cls,
gettext_noop ("# HELLOs obtained from peerinfo"), 1,
GNUNET_NO);
hm = GNUNET_CONTAINER_multipeermap_get (peer_to_hello, peer);
- if (NULL != hm)
- GNUNET_free (hm);
+ GNUNET_free (hm);
hm = GNUNET_malloc (GNUNET_HELLO_size (hello));
GNUNET_memcpy (hm, hello, GNUNET_HELLO_size (hello));
GNUNET_assert (GNUNET_SYSERR !=