fix memory leak
authorChristian Grothoff <christian@grothoff.org>
Thu, 4 Jan 2018 20:54:31 +0000 (21:54 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 4 Jan 2018 20:54:31 +0000 (21:54 +0100)
src/multicast/gnunet-service-multicast.c

index ba1086cc5bf43fe38aa406e9e5d7dba30f425e3e..d01227e2c9675ea82f92a887916be56ddd77431f 100644 (file)
@@ -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;
 }