From c0dbb72b14510d436864f1a3633c7f4a15444f64 Mon Sep 17 00:00:00 2001 From: Panos Koutsovasilis Date: Mon, 8 Jul 2024 17:24:18 +0300 Subject: [PATCH] fix: reduce capacity of LRU slice during Pop --- x-pack/filebeat/input/netflow/decoder/v9/lru.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/filebeat/input/netflow/decoder/v9/lru.go b/x-pack/filebeat/input/netflow/decoder/v9/lru.go index 082a43abbe4..3c9832c5063 100644 --- a/x-pack/filebeat/input/netflow/decoder/v9/lru.go +++ b/x-pack/filebeat/input/netflow/decoder/v9/lru.go @@ -43,7 +43,7 @@ func (h *pendingEventsHeap) Pop() any { old := *h n := len(old) x := old[n-1] - *h = old[0 : n-1] + *h = old[0 : n-1 : n-1] return x }