commit | 01e94db84f0f030f22a2e16b389ef24133ab6923 | [log] [tgz] |
---|---|---|
author | barryxie <barryxie@tencent.com> | Fri Dec 04 19:21:23 2020 +0800 |
committer | Neale Ranns <nranns@cisco.com> | Fri Dec 04 14:36:34 2020 +0000 |
tree | 25f75542a0914112c608023ef3b640ba88013928 | |
parent | 3825d93afeed42e62e41f743df69058511c51079 [diff] [blame] |
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
diff --git a/src/vnet/ip/reass/ip4_full_reass.c b/src/vnet/ip/reass/ip4_full_reass.c index ba3a358..ce7771f 100644 --- a/src/vnet/ip/reass/ip4_full_reass.c +++ b/src/vnet/ip/reass/ip4_full_reass.c
@@ -464,6 +464,7 @@ { vlib_buffer_free (vm, to_free, vec_len (to_free)); } + vec_free (to_free); } always_inline void