This is an automated email from Gerrit.

Antonio Borneo ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/6414

-- gerrit

commit 2fe85d80c2d570288548d5880417a29078cea3fb
Author: Antonio Borneo <[email protected]>
Date:   Thu Aug 5 00:22:06 2021 +0200

    openocd: fix cleanup order: cti before dap
    
    cti access is based on dap.
    During cleanup, drop cti before dropping dap to guarantee that cti
    can still access its dap.
    
    Change-Id: I40c7f67d4d4a32f53802c0ce7668a5321a05893c
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/src/openocd.c b/src/openocd.c
index 2c94666..b4571b4 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -364,8 +364,8 @@ int openocd_main(int argc, char *argv[])
        help_del_all_commands(cmd_ctx);
 
        /* free all DAP and CTI objects */
-       dap_cleanup_all();
        arm_cti_cleanup_all();
+       dap_cleanup_all();
 
        adapter_quit();
 

-- 

Reply via email to