summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-12-19 07:00:09 -0800
committerChris Luke <chris_luke@comcast.com>2017-12-19 18:43:32 +0000
commit4bc2d7ab3990aa8c819cd8134d029aa0d5e5b0d7 (patch)
tree3faaf4519157c612ac896e28e21a412b16a14106
parent5e30aceb3a619e71ae081c7dd55b40122e7bfbea (diff)
FIB memory leak during recursive loop detection
Change-Id: I5ecd43330b3329b072e6da62a4eed1641eb17f8f Signed-off-by: Neale Ranns <nranns@cisco.com>
-rw-r--r--src/vnet/fib/fib_path_list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_path_list.c b/src/vnet/fib/fib_path_list.c
index 763f0921ab2..e9eaa75a08e 100644
--- a/src/vnet/fib/fib_path_list.c
+++ b/src/vnet/fib/fib_path_list.c
@@ -1204,6 +1204,8 @@ fib_path_list_recursive_loop_detect (fib_node_index_t path_list_index,
is_looped = fib_path_recursive_loop_detect(*path_index, copy_ptr);
list_looped += is_looped;
+
+ vec_free(copy);
}
FIB_PATH_LIST_DBG(path_list, "loop-detect: eval:%d", eval);