Fixed coverity #10228
authorBart Polot <bart@net.in.tum.de>
Fri, 28 Oct 2011 11:40:38 +0000 (11:40 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 28 Oct 2011 11:40:38 +0000 (11:40 +0000)
src/mesh/gnunet-service-mesh.c

index 6e0af467bb67c59e1bac58c4b0d2ae7afbe4a8d7..a3a9db942574ed7a017944220cabf1a6b90c5671 100644 (file)
@@ -2622,6 +2622,7 @@ handle_mesh_path_destroy (void *cls, const struct GNUNET_PeerIdentity *peer,
   if (own_pos < path->length - 1)
     send_message (message, &pi[own_pos + 1]);
   tunnel_delete_peer (t, path->peers[path->length - 1]);
+  path_destroy (path);
   return GNUNET_OK;
 }