From 79dc4bc2908461581d38fcd869d2cc8ccf7382b4 Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Wed, 28 Feb 2024 11:15:23 +0000 Subject: [PATCH] style: Lint fixes --- internal/zstd/reader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/zstd/reader.go b/internal/zstd/reader.go index 20630a3..cd57a56 100644 --- a/internal/zstd/reader.go +++ b/internal/zstd/reader.go @@ -34,6 +34,7 @@ func NewReader(_ []byte, reader io.Reader) (io.ReadCloser, error) { if r, err = zstd.NewReader(reader); err != nil { return nil, err } + runtime.SetFinalizer(r, (*zstd.Decoder).Close) }