From 288990c809f818ccb87d04234b783efd0a2c0276 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 15 Jan 2011 23:00:26 +0100 Subject: [PATCH] Fix memory leak while running Dijkstra's algorithm. --- src/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph.c b/src/graph.c index 216f9de..f9434ca 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 */ -- 2.25.1