we have to destroy channels to the origin when cleaning up a member
authorlurchi <lurchi@strangeplace.net>
Fri, 15 Dec 2017 16:37:05 +0000 (17:37 +0100)
committerlurchi <lurchi@strangeplace.net>
Fri, 15 Dec 2017 16:37:05 +0000 (17:37 +0100)
src/multicast/gnunet-service-multicast.c

index 83aee846c9a6b77effcaf90681408b66f4b3a614..ea64c547e6bc7bedc3873eb61e612a0a5acb6e59 100644 (file)
@@ -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);
 }