package naza.bufferpool: bugfix std pool bucket get with reset

pull/2/head
q191201771 5 years ago
parent 13e1825dcb
commit fd716a0960

@ -28,8 +28,9 @@ func (b *StdPoolBucket) Get() *bytes.Buffer {
if v == nil {
return nil
}
return v.(*bytes.Buffer)
vv := v.(*bytes.Buffer)
vv.Reset()
return vv
}
func (b *StdPoolBucket) Put(buf *bytes.Buffer) {

Loading…
Cancel
Save