projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leak while running Dijkstra's algorithm.
[tinc]
/
src
/
graph.c
diff --git
a/src/graph.c
b/src/graph.c
index
216f9de
..
f9434ca
100644
(file)
--- 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 */