From 01e94db84f0f030f22a2e16b389ef24133ab6923 Mon Sep 17 00:00:00 2001 From: barryxie Date: Fri, 4 Dec 2020 19:21:23 +0800 Subject: ip: fixup memory leak in function ip4_full_reass_drop_all Type: fix The vector 'to_free' allocated on heap should be freed to avoid memory leak. Signed-off-by: barryxie Change-Id: I539498b50a7f3e346c83b869fb400868961c233f --- src/vnet/ip/reass/ip4_full_reass.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/vnet/ip/reass/ip4_full_reass.c b/src/vnet/ip/reass/ip4_full_reass.c index ba3a3586cbd..ce7771f8e43 100644 --- a/src/vnet/ip/reass/ip4_full_reass.c +++ b/src/vnet/ip/reass/ip4_full_reass.c @@ -464,6 +464,7 @@ ip4_full_reass_drop_all (vlib_main_t * vm, vlib_node_runtime_t * node, { vlib_buffer_free (vm, to_free, vec_len (to_free)); } + vec_free (to_free); } always_inline void -- cgit 1.2.3-korg