Fixed leak
authorBart Polot <bart@net.in.tum.de>
Wed, 2 Nov 2011 13:44:00 +0000 (13:44 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 2 Nov 2011 13:44:00 +0000 (13:44 +0000)
src/mesh/gnunet-service-mesh.c

index 792a4390d42f484711b8f10d63bcece4ed42efb1..0203612e5ff713d01a0706e84d194863a101144b 100644 (file)
@@ -1533,6 +1533,7 @@ path_add_to_peer (struct MeshPeerInfo *peer_info,
   if (path->length <= 2 && GNUNET_NO == trusted)
   {
     /* Only allow CORE to tell us about direct paths */
+    path_destroy (path);
     return;
   }
   for (l = 1; l < path->length; l++)