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-Tag: v0.11.0-rc1~1174 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=71f5f6eb14a1161875122d6b015b2f6fe2415b33;hp=7ad11de2fa37b504fc84f608ee355cf02221429a 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 62a8f59477..cb9ef39690 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; }