]> Cypherpunks repositories - gostls13.git/commit
internal/poll: avoid memory leak in Writev
authortaoyuanyuan <linuxty@gmail.com>
Sun, 19 May 2019 23:23:04 +0000 (23:23 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 20 May 2019 01:53:24 +0000 (01:53 +0000)
commit5eeb372418466920cad237a89846556453bd91ca
tree1c2b75be348882d0baf7327fe4186461e2b1c325
parent5ca44dc403d4a609eeafb0f699a63f19ef045cd6
internal/poll: avoid memory leak in Writev

The chunks that were referenced by fd.iovecs would not be GC.

Change-Id: I7bfcb91a3fef57a4a1861168e9cd3ab55ce1334e
GitHub-Last-Rev: e0b7f68447441fd89ed1a6e8aa37e2084fd863b2
GitHub-Pull-Request: golang/go#32138
Reviewed-on: https://go-review.googlesource.com/c/go/+/178037
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/poll/writev.go