From 4bc2d7ab3990aa8c819cd8134d029aa0d5e5b0d7 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 19 Dec 2017 07:00:09 -0800 Subject: FIB memory leak during recursive loop detection Change-Id: I5ecd43330b3329b072e6da62a4eed1641eb17f8f Signed-off-by: Neale Ranns --- src/vnet/fib/fib_path_list.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit 1.2.3-korg