projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/jtag/hla: free allocated memory in hl_interface_quit()
[fw/openocd]
/
src
/
jtag
/
hla
/
hla_interface.c
diff --git
a/src/jtag/hla/hla_interface.c
b/src/jtag/hla/hla_interface.c
index 62a8f59477f8b30c1438ffca7a655973a125098d..cb9ef3969021f382b8c621dc19a64b4d7c53ffa5 100644
(file)
--- a/
src/jtag/hla/hla_interface.c
+++ b/
src/jtag/hla/hla_interface.c
@@
-119,6
+119,11
@@
static int hl_interface_quit(void)
if (hl_if.layout->api->close)
hl_if.layout->api->close(hl_if.handle);
+ jtag_command_queue_reset();
+
+ free((void *)hl_if.param.device_desc);
+ free((void *)hl_if.param.serial);
+
return ERROR_OK;
}