Skip to content

Commit 50b4f1b

Browse files
adonovangopherbot
authored andcommitted
gopls/internal/golang: close open file
Found while thinking about typestate. Change-Id: Ia98ace4782be34d1201f0ce5c8e536314fc494d7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/563155 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Alan Donovan <adonovan@google.com> Auto-Submit: Alan Donovan <adonovan@google.com>
1 parent f0ef3c6 commit 50b4f1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gopls/internal/golang/gc_annotations.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func GCOptimizationDetails(ctx context.Context, snapshot *cache.Snapshot, mp *me
3434
if err != nil {
3535
return nil, err
3636
}
37+
tmpFile.Close() // ignore error
3738
defer os.Remove(tmpFile.Name())
3839

3940
outDirURI := protocol.URIFromPath(outDir)

0 commit comments

Comments
 (0)