From 003cba6e1b46d3ae4fb0e22831d3ca8a6c0213f8 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sat, 10 Aug 2024 16:08:38 -0700 Subject: [PATCH] Fix data race --- hashcompute.go | 1 - 1 file changed, 1 deletion(-) diff --git a/hashcompute.go b/hashcompute.go index c70a97f..a6da86d 100644 --- a/hashcompute.go +++ b/hashcompute.go @@ -31,7 +31,6 @@ func getBuf(size, capacity int) []uint8 { buf := *bufPool.Get().(*[]uint8) if cap(buf) < capacity { - bufPool.Put(&buf) buf = make([]uint8, capacity) }