From 2668ec4f848f5348c0876fe8dd7db97b9b71b045 Mon Sep 17 00:00:00 2001 From: lurchi Date: Fri, 15 Dec 2017 17:37:05 +0100 Subject: [PATCH] we have to destroy channels to the origin when cleaning up a member --- src/multicast/gnunet-service-multicast.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/multicast/gnunet-service-multicast.c b/src/multicast/gnunet-service-multicast.c index 83aee846c..ea64c547e 100644 --- a/src/multicast/gnunet-service-multicast.c +++ b/src/multicast/gnunet-service-multicast.c @@ -423,6 +423,11 @@ cleanup_member (struct Member *mem) GNUNET_free (mem->join_dcsn); mem->join_dcsn = NULL; } + if (NULL != mem->origin_channel) + { + GNUNET_CADET_channel_destroy (mem->origin_channel->channel); + mem->origin_channel = NULL; + } GNUNET_CONTAINER_multihashmap_remove (members, &grp->pub_key_hash, mem); GNUNET_free (mem); } -- 2.25.1