Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3825d93
)
ip: fixup memory leak in function ip4_full_reass_drop_all
74/30274/4
author
barryxie
<barryxie@tencent.com>
Fri, 4 Dec 2020 11:21:23 +0000
(19:21 +0800)
committer
Neale Ranns
<nranns@cisco.com>
Fri, 4 Dec 2020 14:36:34 +0000
(14:36 +0000)
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
src/vnet/ip/reass/ip4_full_reass.c
patch
|
blob
|
history
diff --git
a/src/vnet/ip/reass/ip4_full_reass.c
b/src/vnet/ip/reass/ip4_full_reass.c
index
ba3a358
..
ce7771f
100644
(file)
--- 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