1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-13 11:50:34 +02:00

fix: fd leak on gomod pipe (#2188)

Signed-off-by: Carlos Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2021-04-25 00:08:58 -03:00 committed by GitHub
parent 48e8d83dad
commit f72e6399da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,6 +183,7 @@ func copyGoSum(src, dst string) error {
}
return err
}
defer r.Close()
w, err := os.Create(dst)
if err != nil {