[PATCH 2/2] ipcpd: normal: Add missing free

  • From: Sander Vrijders <sander.vrijders@xxxxxxxx>
  • To: ouroboros@xxxxxxxxxxxxx
  • Date: Sat, 24 Feb 2018 11:55:18 +0100

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


Other related posts:

  • » [PATCH 2/2] ipcpd: normal: Add missing free - Sander Vrijders