diff --git a/util/deephash/deephash.go b/util/deephash/deephash.go index ac1c267c7..e3f0dfcf9 100644 --- a/util/deephash/deephash.go +++ b/util/deephash/deephash.go @@ -53,7 +53,7 @@ func (h *hasher) Hash(v interface{}) (hash [sha256.Size]byte) { // Hash returns the raw SHA-256 hash of v. func Hash(v interface{}) [sha256.Size]byte { hasher := hasherPool.Get().(*hasher) - hasherPool.Put(hasher) + defer hasherPool.Put(hasher) return hasher.Hash(v) }