diff --git a/cmd/fdroidcl/update.go b/cmd/fdroidcl/update.go index dc5b322..d046079 100644 --- a/cmd/fdroidcl/update.go +++ b/cmd/fdroidcl/update.go @@ -75,6 +75,7 @@ func downloadEtag(url, path string, sum []byte) error { if err != nil { return err } + defer f.Close() if sum == nil { _, err := io.Copy(f, resp.Body) if err != nil {