util/deephash: fix sync.Pool usage
Whoops.
From yesterday's (not yet
used by anything, fortunately)
@@ -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)
}
