From: lurchi Date: Fri, 15 Dec 2017 16:37:05 +0000 (+0100) Subject: we have to destroy channels to the origin when cleaning up a member X-Git-Tag: gnunet-0.11.0rc0~48^2~1^2~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2668ec4f848f5348c0876fe8dd7db97b9b71b045;p=oweals%2Fgnunet.git we have to destroy channels to the origin when cleaning up a member --- 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); }