summaryrefslogtreecommitdiffstats
path: root/src/vnet/bier/bier_imp.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2022-06-02 15:18:54 -0500
committerJon Loeliger <jdl@netgate.com>2022-06-02 15:27:53 -0500
commiteaa83c0439c13b76525224267c23d0cf52a6668b (patch)
tree1a4b1a9e8e42c3be942704f70a3765ebe4fff723 /src/vnet/bier/bier_imp.c
parent512223490a247d792c27f3bfe6ffe49e6dfb71fa (diff)
ipfix-export: Fix frame leak in flow_report_process_send()
The flow_report_process_send() function always allocates a frame. However, when no template_send is needed, template_bi is ~0. When this happens, no vectors are placed in the frame. When the frame is then "put", a check for n_vectors == 0 prevents the frame from actually being placed back on the free list. Fix that by using a direct call to vlib_frame_free() when there are no frame vctors. Type: fix Signed-off-by: Jon Loeliger <jdl@netgate.com> Change-Id: I936b5cea4cb3c358247c3d2e1a77d034a322ea76
Diffstat (limited to 'src/vnet/bier/bier_imp.c')
0 files changed, 0 insertions, 0 deletions