Skip to content

Commit 5da0263

Browse files
ianlancetaylorgopherbot
authored andcommitted
cmd/go/internal/vcweb: close the .access file
For #71112 Change-Id: Ifda4fc8de148c42a2154da54b53d7215b9a6faa0 Reviewed-on: https://go-review.googlesource.com/c/go/+/640175 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 31cabcf commit 5da0263

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/go/internal/vcweb/auth.go

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func (h *authHandler) Handler(dir string, env []string, logger *log.Logger) (htt
6363
var err error
6464
accessFile, err = fs.Open(path.Join(accessDir, ".access"))
6565
if err == nil {
66+
defer accessFile.Close()
6667
break
6768
}
6869

0 commit comments

Comments
 (0)