From ca942c45c2205f8e39ac8203c6722bac62f49bac Mon Sep 17 00:00:00 2001 From: Kioubit Date: Tue, 12 Nov 2024 02:24:37 +0200 Subject: [PATCH] avoid allocation --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 84ceb94..55d8746 100644 --- a/main.go +++ b/main.go @@ -111,7 +111,7 @@ func packetHandler(packetChan chan *[]byte) { obj.changed = true } obj.Unlock() - pktPool.Put(*packet) + pktPool.Put(packet) } }