mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue