summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip_api.c
diff options
context:
space:
mode:
authorMatthew Smith <mgsmith@netgate.com>2019-09-18 13:51:46 -0500
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-02 01:45:09 +0000
commit45aab261a16373bb933ff4551290ac0f77f1cc44 (patch)
tree9cc1ec99433c790f66148cdd3a8c63bd57cdd8e8 /src/vnet/ip/ip_api.c
parent4afd0a1298d48454b1b02ce716a499cc41a9f99e (diff)
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 <mgsmith@netgate.com> (cherry picked from commit 6d5f6592559bc0db4294c53236177d4e35e603c6)
Diffstat (limited to 'src/vnet/ip/ip_api.c')
-rw-r--r--src/vnet/ip/ip_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_api.c b/src/vnet/ip/ip_api.c
index fd4c1521a22..4055dead4ba 100644
--- a/src/vnet/ip/ip_api.c
+++ b/src/vnet/ip/ip_api.c
@@ -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