cmd/link/internal/ld: add missing Close

Noticed while working on issue 30488.

Change-Id: Ia3655e07c939d03925b3560eeba24c60e24c136c
Reviewed-on: https://go-review.googlesource.com/c/go/+/175917
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Elias Naur 2019-05-08 09:21:06 +02:00
parent 2d32d3675a
commit bc588d4d92
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ func machoCombineDwarf(ctxt *Link, exef *os.File, exem *macho.File, dsym, outexe
if err != nil {
return err
}
defer dwarff.Close()
outf, err := os.Create(outexe)
if err != nil {
return err