commit | 50b4f1b124a3a03ca655a70817a9b95eedab863d | [log] [tgz] |
---|---|---|
author | Alan Donovan <adonovan@google.com> | Sat Feb 10 17:57:29 2024 -0500 |
committer | Gopher Robot <gobot@golang.org> | Mon Feb 12 19:37:00 2024 +0000 |
tree | d03bb1351516250b622adaf9084130b324151cb5 | |
parent | f0ef3c690241cae5119135077dee723e50c1278d [diff] |
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>
diff --git a/gopls/internal/golang/gc_annotations.go b/gopls/internal/golang/gc_annotations.go index 8bcf402..1ff8661 100644 --- a/gopls/internal/golang/gc_annotations.go +++ b/gopls/internal/golang/gc_annotations.go
@@ -34,6 +34,7 @@ if err != nil { return nil, err } + tmpFile.Close() // ignore error defer os.Remove(tmpFile.Name()) outDirURI := protocol.URIFromPath(outDir)