From: Tomas Vanek Date: Thu, 15 Feb 2018 09:24:15 +0000 (+0100) Subject: src/jtag/hla: free allocated memory in hl_interface_quit() X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71f5f6eb14a1161875122d6b015b2f6fe2415b33;p=openocd src/jtag/hla: free allocated memory in hl_interface_quit() Change-Id: If6ead00e47021c88e4c106b4aeaf038db87ff50b Signed-off-by: Tomas Vanek Reviewed-on: http://openocd.zylin.com/4413 Tested-by: jenkins --- diff --git a/src/jtag/hla/hla_interface.c b/src/jtag/hla/hla_interface.c index 62a8f594..cb9ef396 100644 --- 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; }