This is an automated email from Gerrit.

"Antonio Borneo <[email protected]>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/6646

-- gerrit

commit 6f29348c697a932bed95353de4a93f237d42d0d5
Author: Antonio Borneo <[email protected]>
Date:   Thu Oct 7 18:13:21 2021 +0200

    jtag/adapter: fix memory leak on usb location
    
    At exit, free the memory allocated to hold the USB location.
    
    Change-Id: I050701f4dc8be14fd40e8add9d0b047461fa0d1c
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/src/jtag/adapter.c b/src/jtag/adapter.c
index a5a6222a9..c30019c17 100644
--- a/src/jtag/adapter.c
+++ b/src/jtag/adapter.c
@@ -120,6 +120,8 @@ int adapter_quit(void)
                        LOG_ERROR("failed: %d", result);
        }
 
+       free(adapter_config.usb_location);
+
        struct jtag_tap *t = jtag_all_taps();
        while (t) {
                struct jtag_tap *n = t->next_tap;

-- 

Reply via email to