mirror of
https://github.com/golang/go
synced 2024-09-05 07:54:46 +00: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:
parent
ffeae198d0
commit
31f2bb4ba2
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue