mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +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
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue