diff --git a/pkg/helm/helm.go b/pkg/helm/helm.go index 1027c5496..b6dd72323 100644 --- a/pkg/helm/helm.go +++ b/pkg/helm/helm.go @@ -275,6 +275,7 @@ func writeRepoTmpFile(r []Repo) (string, error) { if err != nil { return "", err } + defer f.Close() enc := json.NewEncoder(f) if err := enc.Encode(m); err != nil {