From 6d5f6592559bc0db4294c53236177d4e35e603c6 Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Wed, 18 Sep 2019 13:51:46 -0500 Subject: ip: fix memory leak in ip_dump handler Type: fix A vector allocated by vl_api_ip_dump_t_handler() was not being freed. Change-Id: I13425b8087e60df60c6aaa1230aa7e6d60b101a8 Signed-off-by: Matthew Smith --- src/vnet/ip/ip_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vnet/ip/ip_api.c b/src/vnet/ip/ip_api.c index 8dbd3e6ce12..7e87f4b8db0 100644 --- a/src/vnet/ip/ip_api.c +++ b/src/vnet/ip/ip_api.c @@ -1051,6 +1051,8 @@ vl_api_ip_dump_t_handler (vl_api_ip_dump_t * mp) send_ip_details (am, reg, sw_if_index, mp->is_ipv6, mp->context); } } + + vec_free (sorted_sis); } static void -- cgit 1.2.3-korg