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/mpls/mpls.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/vnet/mpls') diff --git a/src/vnet/mpls/mpls.c b/src/vnet/mpls/mpls.c index 4076a8980a9..0d01010feea 100644 --- a/src/vnet/mpls/mpls.c +++ b/src/vnet/mpls/mpls.c @@ -425,8 +425,9 @@ vnet_mpls_table_cmd (vlib_main_t * vm, } done: - unformat_free (line_input); - return error; + vec_free (name); + unformat_free (line_input); + return error; } /* *INDENT-ON* */ -- cgit 1.2.3-korg