pg: avoid possible buffer leak
Change-Id: Iad1a4028d7c3d603e644db9f8a743b92fc2a4dba Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:

committed by
Dave Barach

parent
eccf509a31
commit
c008ee186b
@ -70,7 +70,7 @@ pg_output (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
|
||||
pcap_write (&pif->pcap_main);
|
||||
}
|
||||
|
||||
vlib_buffer_free_no_next (vm, vlib_frame_args (frame), n_buffers);
|
||||
vlib_buffer_free (vm, vlib_frame_args (frame), n_buffers);
|
||||
if (PREDICT_FALSE (pif->lockp != 0))
|
||||
*pif->lockp = 0;
|
||||
return n_buffers;
|
||||
|
Reference in New Issue
Block a user