diff options
author | Paul Fertser <fercerpav@gmail.com> | 2015-02-11 11:04:15 +0300 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2015-03-09 06:40:50 +0000 |
commit | 889b246d939bf8572094cf4bfe56f58f44e8ff62 (patch) | |
tree | 26e43e85a262762bdbae6eba23a2f6ff98d87152 /src | |
parent | 11b6ab90fb59bb2f794bbf7ca4cb89964ead6280 (diff) | |
download | riscv-openocd-889b246d939bf8572094cf4bfe56f58f44e8ff62.zip riscv-openocd-889b246d939bf8572094cf4bfe56f58f44e8ff62.tar.gz riscv-openocd-889b246d939bf8572094cf4bfe56f58f44e8ff62.tar.bz2 |
hla/hla_interface: call HLA layout API close() on quit
This bug was exposed by Valgrind.
Change-Id: I2e2bc036b49ca3ff22f78f765ee4537763350096
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2543
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/hla/hla_interface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jtag/hla/hla_interface.c b/src/jtag/hla/hla_interface.c index 21cd06f..85f083c 100644 --- a/src/jtag/hla/hla_interface.c +++ b/src/jtag/hla/hla_interface.c @@ -124,6 +124,9 @@ static int hl_interface_quit(void) } hl_if.param.trace_source_hz = 0; + if (hl_if.layout->api->close) + hl_if.layout->api->close(hl_if.handle); + return ERROR_OK; } |