if (GNUNET_OK != register_neighbors (c))
{
if (0 == own_pos)
- {
GMT_remove_path (c->t, p);
- path_destroy (p);
- }
GMC_destroy (c);
return NULL;
}
* Remove any path to the peer that has the extact same peers as the one given.
*
* @param peer Peer to remove the path from.
- * @param path Path to remove.
+ * @param path Path to remove. Is always destroyed .
*/
void
GMP_remove_path (struct MeshPeer *peer, struct MeshPeerPath *path)
return;
}
}
+ path_destroy (path);
}
* Remove any path to the peer that has the extact same peers as the one given.
*
* @param peer Peer to remove the path from.
- * @param path Path to remove.
+ * @param path Path to remove. Is always destroyed .
*/
void
GMP_remove_path (struct MeshPeer *peer, struct MeshPeerPath *path);
* Mark a path as no longer valid for this tunnel: has been tried and failed.
*
* @param t Tunnel to update.
- * @param path Invalid path.
+ * @param path Invalid path to remove. Is destroyed after removal.
*/
void
GMT_remove_path (struct MeshTunnel3 *t, struct MeshPeerPath *path)
* Mark a path as no longer valid for this tunnel: has been tried and failed.
*
* @param t Tunnel to update.
- * @param path Invalid path.
+ * @param path Invalid path to remove. Is destroyed after removal.
*/
void
GMT_remove_path (struct MeshTunnel3 *t, struct MeshPeerPath *path);