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 <bradfitz@golang.org>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Alex Brainman 2016-04-05 12:54:46 +10:00
parent ffeae198d0
commit 31f2bb4ba2

View file

@ -208,6 +208,7 @@ func TestPCLine(t *testing.T) {
defer endtest() defer endtest()
f, tab := crack(pclinetestBinary, t) f, tab := crack(pclinetestBinary, t)
defer f.Close()
text := f.Section(".text") text := f.Section(".text")
textdat, err := text.Data() textdat, err := text.Data()
if err != nil { if err != nil {