From: Matthew Smith Date: Wed, 18 Sep 2019 18:51:46 +0000 (-0500) Subject: ip: fix memory leak in ip_dump handler X-Git-Tag: v20.05-rc0~817 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F22139%2F2;p=vpp.git 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 --- 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