Close r.Body
Anirudh Oppiliappan x@icyphox.sh
Tue, 16 Nov 2021 08:26:14 +0530
1 files changed,
2 insertions(+),
0 deletions(-)
M
plugins/listenbrainz/nowplaying.go
→
plugins/listenbrainz/nowplaying.go
@@ -35,6 +35,8 @@ return nil, fmt.Errorf("non-200 response from Listenbrainz")
} json.NewDecoder(r.Body).Decode(&li) + defer r.Body.Close() + return &li, err }