diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2016-04-05 12:54:46 +1000 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2016-04-05 04:43:44 +0000 |
| commit | 31f2bb4ba28fa0e9908026def705822dd9b4fa6c (patch) | |
| tree | 1de25fb410031479cf3f3ada6cc71ce88175cbf9 /src/debug | |
| parent | ffeae198d018693f84b15f8f44f9a2eb6b8e9713 (diff) | |
| download | go-31f2bb4ba28fa0e9908026def705822dd9b4fa6c.tar.xz | |
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>
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/gosym/pclntab_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |
