X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fhla%2Fhla_interface.c;h=cb9ef3969021f382b8c621dc19a64b4d7c53ffa5;hp=62a8f59477f8b30c1438ffca7a655973a125098d;hb=71f5f6eb14a1161875122d6b015b2f6fe2415b33;hpb=7ad11de2fa37b504fc84f608ee355cf02221429a 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; }