ip: fix memory leak in ip_dump handler 14/22414/3
authorMatthew Smith <[email protected]>
Wed, 18 Sep 2019 18:51:46 +0000 (13:51 -0500)
committerAndrew Yourtchenko <[email protected]>
Wed, 2 Oct 2019 01:45:09 +0000 (01:45 +0000)
Type: fix

A vector allocated by vl_api_ip_dump_t_handler() was not being
freed.

Change-Id: I13425b8087e60df60c6aaa1230aa7e6d60b101a8
Signed-off-by: Matthew Smith <[email protected]>
(cherry picked from commit 6d5f6592559bc0db4294c53236177d4e35e603c6)

src/vnet/ip/ip_api.c

index fd4c152..4055dea 100644 (file)
@@ -1050,6 +1050,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