From: Guus Sliepen Date: Sat, 15 Jan 2011 22:00:26 +0000 (+0100) Subject: Fix memory leak while running Dijkstra's algorithm. X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=288990c809f818ccb87d04234b783efd0a2c0276;p=tinc Fix memory leak while running Dijkstra's algorithm. --- diff --git a/src/graph.c b/src/graph.c index 216f9de2..f9434cad 100644 --- a/src/graph.c +++ b/src/graph.c @@ -160,7 +160,7 @@ void sssp_dijkstra(void) { /* Mark this node as visited and remove it from the todo_list */ n->status.visited = true; - list_unlink_node(todo_list, nnode); + list_delete_node(todo_list, nnode); /* Update distance of neighbours and add them to the todo_list */