Skip to content

Commit d9df74a

Browse files
committed
Reset when retrieving from pool only
1 parent 28f8f55 commit d9df74a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/encoding/json/encode.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ func Marshal(v interface{}) ([]byte, error) {
164164
}
165165
buf := append([]byte(nil), e.Bytes()...)
166166

167-
e.Reset()
168167
encodeStatePool.Put(e)
169168

170169
return buf, nil

0 commit comments

Comments
 (0)