From: barryxie Date: Fri, 4 Dec 2020 11:21:23 +0000 (+0800) Subject: ip: fixup memory leak in function ip4_full_reass_drop_all X-Git-Tag: v21.06-rc0~65 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=01e94db84f0f030f22a2e16b389ef24133ab6923;p=vpp.git 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 --- 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