]> git.sur5r.net Git - openocd/commitdiff
src/jtag/hla: free allocated memory in hl_interface_quit()
authorTomas Vanek <vanekt@fbl.cz>
Thu, 15 Feb 2018 09:24:15 +0000 (10:24 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 15 Mar 2018 17:09:56 +0000 (17:09 +0000)
Change-Id: If6ead00e47021c88e4c106b4aeaf038db87ff50b
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4413
Tested-by: jenkins
src/jtag/hla/hla_interface.c

index 62a8f59477f8b30c1438ffca7a655973a125098d..cb9ef3969021f382b8c621dc19a64b4d7c53ffa5 100644 (file)
@@ -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;
 }