From: Alex Brainman Date: Tue, 5 Apr 2016 02:54:46 +0000 (+1000) Subject: debug/gosym: do not forget to close test binay file handle in TestPCLine X-Git-Tag: go1.7beta1~906 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=31f2bb4ba28fa0e9908026def705822dd9b4fa6c;p=gostls13.git debug/gosym: do not forget to close test binay file handle in TestPCLine Fixes #15121 Change-Id: I651521743c56244c55eda5762905889d7e06887a Reviewed-on: https://go-review.googlesource.com/21521 Reviewed-by: Brad Fitzpatrick Run-TryBot: Alex Brainman TryBot-Result: Gobot Gobot --- diff --git a/src/debug/gosym/pclntab_test.go b/src/debug/gosym/pclntab_test.go index b8f167b3c7..1a780bf121 100644 --- a/src/debug/gosym/pclntab_test.go +++ b/src/debug/gosym/pclntab_test.go @@ -208,6 +208,7 @@ func TestPCLine(t *testing.T) { defer endtest() f, tab := crack(pclinetestBinary, t) + defer f.Close() text := f.Section(".text") textdat, err := text.Data() if err != nil {