src/jtag/hla: free allocated memory in hl_interface_quit()
Change-Id: If6ead00e47021c88e4c106b4aeaf038db87ff50b Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/4413 Tested-by: jenkins
This commit is contained in:
parent
7ad11de2fa
commit
71f5f6eb14
|
@ -119,6 +119,11 @@ static int hl_interface_quit(void)
|
||||||
if (hl_if.layout->api->close)
|
if (hl_if.layout->api->close)
|
||||||
hl_if.layout->api->close(hl_if.handle);
|
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;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue