summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluoyaozu <luoyaozu@foxmail.com>2024-03-25 20:32:26 +0800
committerMatthew Smith <mgsmith@netgate.com>2024-03-26 14:25:39 +0000
commit4f30bc74577959efddfe4bc544cea4ec5c7019da (patch)
treec76117532a0feb90a0499c5d251e74c34f0ad7a0
parent8ae63db02066a2b5ac18a89fd63dc0dd2a811ab3 (diff)
vrrp: fix vrrp_garp_or_na_send()'s memory leak
need free bi after send packets Type: fix Signed-off-by: luoyaozu <luoyaozu@foxmail.com> Change-Id: I98d03820366c3d106df212c4eb353ec6a228e20e
-rw-r--r--src/plugins/vrrp/vrrp_packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/vrrp/vrrp_packet.c b/src/plugins/vrrp/vrrp_packet.c
index 756ec8b2e89..69e635f811a 100644
--- a/src/plugins/vrrp/vrrp_packet.c
+++ b/src/plugins/vrrp/vrrp_packet.c
@@ -538,6 +538,8 @@ vrrp_garp_or_na_send (vrrp_vr_t * vr)
vlib_put_frame_to_node (vm, vmp->intf_output_node_idx, to_frame);
+ vec_free (bi);
+
return 0;
}