From 0bb0c6d37d4b4fac3c91513d331e2e4f3362edce Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Sat, 24 Feb 2018 11:55:18 +0100 Subject: 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 Signed-off-by: Dimitri Staessens --- src/ipcpd/normal/pol/graph.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3