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>__archive__
parent
11b6ab90fb
commit
889b246d93
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue