ip: fix memory leak in ip_dump handler 39/22139/2
authorMatthew Smith <mgsmith@netgate.com>
Wed, 18 Sep 2019 18:51:46 +0000 (13:51 -0500)
committerNeale Ranns <nranns@cisco.com>
Mon, 23 Sep 2019 08:37:43 +0000 (08:37 +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 <mgsmith@netgate.com>
src/vnet/ip/ip_api.c

index 8dbd3e6..7e87f4b 100644 (file)
@@ -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