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@xxxxxxxx>
---
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 99d309b..41a2720 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;
}
--
2.16.1