From 614d692daf0f0fe465f6bf99ea3076c91cafe682 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 --- gosym/pclntab_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gosym/pclntab_test.go b/gosym/pclntab_test.go index b8f167b..1a780bf 100644 --- a/gosym/pclntab_test.go +++ b/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 {