mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
lib/encoding/zstd: call zstd.Decoder.Close instead of zstd.Decoder.Reset in order to free up occupied goroutines
This should fix goroutine leak for https://github.com/klauspost/compress/issues/195
This commit is contained in:
parent
335bd0ac0a
commit
108a60d69e
@ -32,7 +32,7 @@ func (r *Reader) Read(p []byte) (int, error) {
|
||||
|
||||
// Release releases r.
|
||||
func (r *Reader) Release() {
|
||||
r.d.Reset(nil)
|
||||
r.d.Close(nil)
|
||||
r.d = nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user