]> Cypherpunks repositories - gostls13.git/commitdiff
internal/poll: cast off the last reference of SplicePipe in test
authorAndy Pan <panjf2000@gmail.com>
Thu, 6 May 2021 15:15:37 +0000 (23:15 +0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 7 May 2021 02:45:26 +0000 (02:45 +0000)
Updates #45059

Change-Id: I9f377abcc7b77136ae6cf4896b968f73c758b559
Reviewed-on: https://go-review.googlesource.com/c/go/+/317510
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>

src/internal/poll/splice_linux_test.go

index 3629ef1b20d641783effcc6278ad52c65cfab7c8..280468c7e748d85ec957e7a36eac0a8149440f0d 100644 (file)
@@ -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