From 31f2bb4ba28fa0e9908026def705822dd9b4fa6c Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 5 Apr 2016 12:54:46 +1000 Subject: [PATCH] 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 --- src/debug/gosym/pclntab_test.go | 1 + 1 file changed, 1 insertion(+) 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 {