From 3e17bb28fe345ce40de3dac2dba3b085142ac23c Mon Sep 17 00:00:00 2001 From: guangwu Date: Mon, 20 May 2024 17:28:07 +0800 Subject: [PATCH] fix: close res body --- cmd/plugins.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/plugins.go b/cmd/plugins.go index c0fc90c7..f722326f 100644 --- a/cmd/plugins.go +++ b/cmd/plugins.go @@ -577,6 +577,7 @@ func fetchStandaloneImplementationList() ([]StandaloneImplementation, error) { if err != nil { return remoteList.List, err } + defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil {