From: Andy Pan Date: Thu, 6 May 2021 15:15:37 +0000 (+0800) Subject: internal/poll: cast off the last reference of SplicePipe in test X-Git-Tag: go1.17beta1~212 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=832c70e33d8265116f0abce436215b8e9ee4bb08;p=gostls13.git internal/poll: cast off the last reference of SplicePipe in test Updates #45059 Change-Id: I9f377abcc7b77136ae6cf4896b968f73c758b559 Reviewed-on: https://go-review.googlesource.com/c/go/+/317510 Reviewed-by: Bryan C. Mills Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Go Bot --- diff --git a/src/internal/poll/splice_linux_test.go b/src/internal/poll/splice_linux_test.go index 3629ef1b20..280468c7e7 100644 --- a/src/internal/poll/splice_linux_test.go +++ b/src/internal/poll/splice_linux_test.go @@ -46,6 +46,7 @@ func TestSplicePipePool(t *testing.T) { poll.PutPipe(p) } ps = nil + p = nil // Exploit the timeout of "go test" as a timer for the subsequent verification. timeout := 5 * time.Minute