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 {