From: Christian Grothoff Date: Thu, 4 Jan 2018 20:54:31 +0000 (+0100) Subject: fix memory leak X-Git-Tag: gnunet-0.11.0rc0~16^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=088de93bcf0c7edb971bc630a0865282b3ea83a2;p=oweals%2Fgnunet.git fix memory leak --- diff --git a/src/multicast/gnunet-service-multicast.c b/src/multicast/gnunet-service-multicast.c index ba1086cc5..d01227e2c 100644 --- a/src/multicast/gnunet-service-multicast.c +++ b/src/multicast/gnunet-service-multicast.c @@ -664,6 +664,7 @@ client_send_random (struct GNUNET_HashCode *pub_key_hash, if (n <= 0) n = GNUNET_CONTAINER_multihashmap_get_random (members, client_send_member_cb, (void *) env); + GNUNET_MQ_discard (env); return n; }