From 4f30bc74577959efddfe4bc544cea4ec5c7019da Mon Sep 17 00:00:00 2001 From: luoyaozu Date: Mon, 25 Mar 2024 20:32:26 +0800 Subject: vrrp: fix vrrp_garp_or_na_send()'s memory leak need free bi after send packets Type: fix Signed-off-by: luoyaozu Change-Id: I98d03820366c3d106df212c4eb353ec6a228e20e --- src/plugins/vrrp/vrrp_packet.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit 1.2.3-korg