- fix memleak
authorBart Polot <bart@net.in.tum.de>
Thu, 14 Nov 2013 12:01:36 +0000 (12:01 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 14 Nov 2013 12:01:36 +0000 (12:01 +0000)
src/mesh/gnunet-service-mesh_connection.c

index 0e3831569a0ebc9be2ac6eac3c1575e38a00483b..6b2edb403abcbc78a9c8ac1caf21cbc41f90d0e2 100644 (file)
@@ -2095,6 +2095,8 @@ GMC_destroy (struct MeshConnection *c)
   if (GNUNET_NO == GMC_is_origin (c, GNUNET_YES))
     path_destroy (c->path);
 
+  GNUNET_CONTAINER_multihashmap_remove (connections, &c->id, c);
+
   GNUNET_free (c);
 }