summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/reass
diff options
context:
space:
mode:
authorbarryxie <barryxie@tencent.com>2020-12-04 19:21:23 +0800
committerNeale Ranns <nranns@cisco.com>2020-12-04 14:36:34 +0000
commit01e94db84f0f030f22a2e16b389ef24133ab6923 (patch)
tree25f75542a0914112c608023ef3b640ba88013928 /src/vnet/ip/reass
parent3825d93afeed42e62e41f743df69058511c51079 (diff)
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 <barryxie@tencent.com> Change-Id: I539498b50a7f3e346c83b869fb400868961c233f
Diffstat (limited to 'src/vnet/ip/reass')
-rw-r--r--src/vnet/ip/reass/ip4_full_reass.c1
1 files changed, 1 insertions, 0 deletions
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