1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:04:42 -07:00

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()
f, tab := crack(pclinetestBinary, t)
defer f.Close()
text := f.Section(".text")
textdat, err := text.Data()
if err != nil {