diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go index f085b5a08d76db..2e1f56f88215df 100644 --- a/src/encoding/json/encode.go +++ b/src/encoding/json/encode.go @@ -164,7 +164,6 @@ func Marshal(v interface{}) ([]byte, error) { } buf := append([]byte(nil), e.Bytes()...) - e.Reset() encodeStatePool.Put(e) return buf, nil