From 97866a3279b112bba64a65d073e94aa9635d03ad Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Tue, 8 Feb 2022 07:59:11 -0800 Subject: fib: ip6 and mpls fib_table memory leaks on fib_table->ft_locks ip6 and mpls fib_table->ft_locks memory leaked when the table is deleted. name tag is leaked for mpls table parsing. Type: fix Signed-off-by: Steven Luong Change-Id: Ife68c0ddc3a6f9437a149b308310f042799c2116 --- src/vnet/fib/ip6_fib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/fib/ip6_fib.c') diff --git a/src/vnet/fib/ip6_fib.c b/src/vnet/fib/ip6_fib.c index 708fddce66a..6c73d19d8e3 100644 --- a/src/vnet/fib/ip6_fib.c +++ b/src/vnet/fib/ip6_fib.c @@ -174,6 +174,7 @@ ip6_fib_table_destroy (u32 fib_index) { hash_unset (ip6_main.fib_index_by_table_id, fib_table->ft_table_id); } + vec_free (fib_table->ft_locks); vec_free(fib_table->ft_src_route_counts); pool_put_index(ip6_main.v6_fibs, fib_table->ft_index); pool_put(ip6_main.fibs, fib_table); -- cgit 1.2.3-korg