From 7cd1beec5ca42598aa166833af8704129d5cee1f Mon Sep 17 00:00:00 2001 From: Senan Kelly Date: Sat, 9 Mar 2024 03:35:52 +0000 Subject: [PATCH] close taglib file after use --- tags/taglib/taglib.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tags/taglib/taglib.go b/tags/taglib/taglib.go index 3008c376..d0f5f2d5 100644 --- a/tags/taglib/taglib.go +++ b/tags/taglib/taglib.go @@ -25,6 +25,7 @@ func (TagLib) Read(absPath string) (tagcommon.Info, error) { if err != nil { return nil, fmt.Errorf("open: %w", err) } + defer f.Close() props := f.ReadAudioProperties() raw := f.ReadTags() return &info{raw, props}, nil