1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-10-30 23:58:09 +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

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 {