]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: close debug trace file
authorguoguangwu <guoguangwug@gmail.com>
Thu, 21 Mar 2024 04:03:26 +0000 (04:03 +0000)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Thu, 21 Mar 2024 22:02:37 +0000 (22:02 +0000)
Change-Id: Ia83312e6b0448573d40fe9a58ab42cd0d8f8f44a
GitHub-Last-Rev: 30f462817b3500c02445efa1033a1191c5ad5626
GitHub-Pull-Request: golang/go#66436
Reviewed-on: https://go-review.googlesource.com/c/go/+/573215
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/main.go

index 4e23d7b3da4bc25827bb58b0f36b111296651c80..9fa9fbea5ae598ed4ea2ab8e918a15a007ea448a 100644 (file)
@@ -261,6 +261,7 @@ func invoke(cmd *base.Command, args []string) {
                }
                defer func() {
                        rtrace.Stop()
+                       f.Close()
                }()
        }