Skip to content

Commit bc588d4

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 2d32d36 commit bc588d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/link/internal/ld/macho_combine_dwarf.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func machoCombineDwarf(ctxt *Link, exef *os.File, exem *macho.File, dsym, outexe
9999
if err != nil {
100100
return err
101101
}
102+
defer dwarff.Close()
102103
outf, err := os.Create(outexe)
103104
if err != nil {
104105
return err

0 commit comments

Comments
 (0)