summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/pol/graph.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-02-24 11:55:18 +0100
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-02-24 12:03:00 +0100
commit0bb0c6d37d4b4fac3c91513d331e2e4f3362edce (patch)
treefcaa21c5d32289b042224011ce0cc23fe0e0a97c /src/ipcpd/normal/pol/graph.c
parent77faef1154cb412b0a60e3b1624f0817d4fd8dcf (diff)
downloadouroboros-0bb0c6d37d4b4fac3c91513d331e2e4f3362edce.tar.gz
ouroboros-0bb0c6d37d4b4fac3c91513d331e2e4f3362edce.zip
ipcpd: Fix missing free in graph implementation
There was a missing free in case the address was not found in the routing table when trying to add an LFA for a certain address. Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be> Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Diffstat (limited to 'src/ipcpd/normal/pol/graph.c')
-rw-r--r--src/ipcpd/normal/pol/graph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipcpd/normal/pol/graph.c b/src/ipcpd/normal/pol/graph.c
index 99d309bd..41a27207 100644
--- a/src/ipcpd/normal/pol/graph.c
+++ b/src/ipcpd/normal/pol/graph.c
@@ -584,6 +584,8 @@ static int add_lfa_to_table(struct list_head * table,
}
}
+ free(n);
+
return -1;
}