summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-11-14 12:01:36 +0000
committerBart Polot <bart@net.in.tum.de>2013-11-14 12:01:36 +0000
commit8c220040ca9a9449565e254c21e7df02dfe90824 (patch)
tree30b6b391ff4a876b51ea5b4747a3748c6e0d0acc /src
parent2d58d14b0ba6c6b73ebe1acb44904bc93fe50cc6 (diff)
- fix memleak
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index 0e3831569..6b2edb403 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -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);
}