diff options
author | lurchi <lurchi@strangeplace.net> | 2017-12-15 17:37:05 +0100 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2017-12-15 17:37:05 +0100 |
commit | 2668ec4f848f5348c0876fe8dd7db97b9b71b045 (patch) | |
tree | 3d0d1344eacb6a7e5f53e186187aaaf22a9bae8f /src/multicast | |
parent | a768af6e36718d097391ae990bac4a83282632bb (diff) | |
download | gnunet-2668ec4f848f5348c0876fe8dd7db97b9b71b045.tar.gz gnunet-2668ec4f848f5348c0876fe8dd7db97b9b71b045.zip |
we have to destroy channels to the origin when cleaning up a member
Diffstat (limited to 'src/multicast')
-rw-r--r-- | src/multicast/gnunet-service-multicast.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
423 | GNUNET_free (mem->join_dcsn); | 423 | GNUNET_free (mem->join_dcsn); |
424 | mem->join_dcsn = NULL; | 424 | mem->join_dcsn = NULL; |
425 | } | 425 | } |
426 | if (NULL != mem->origin_channel) | ||
427 | { | ||
428 | GNUNET_CADET_channel_destroy (mem->origin_channel->channel); | ||
429 | mem->origin_channel = NULL; | ||
430 | } | ||
426 | GNUNET_CONTAINER_multihashmap_remove (members, &grp->pub_key_hash, mem); | 431 | GNUNET_CONTAINER_multihashmap_remove (members, &grp->pub_key_hash, mem); |
427 | GNUNET_free (mem); | 432 | GNUNET_free (mem); |
428 | } | 433 | } |