Fixed coverity 10176
authorBart Polot <bart@net.in.tum.de>
Wed, 12 Oct 2011 14:27:56 +0000 (14:27 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 12 Oct 2011 14:27:56 +0000 (14:27 +0000)
src/mesh/gnunet-service-mesh.c

index 79cad3df86861ca16a16dbdb82413b74a3594036..c501c33f0308e2d0b4fe1df056976205e3130132 100644 (file)
@@ -873,6 +873,7 @@ send_create_path (struct MeshPeerInfo *peer,
   }
   if (i >= p->length - 1)
   {
+    path_destroy(p);
     GNUNET_break (0);
     return;
   }