mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
Reset gzip encoder on put to pool
This commit is contained in:
parent
0c2da110db
commit
6007f1a99b
@ -59,5 +59,7 @@ func (p *gzipPool) Put(gz *gzip.Writer) {
|
||||
p.mutex.Lock()
|
||||
defer p.mutex.Unlock()
|
||||
|
||||
gz.Reset(ioutil.Discard)
|
||||
|
||||
p.top = &gzipPoolEntry{gz: gz, next: p.top}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user