This is an automated email from Gerrit.

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

-- gerrit

commit 000c4a9b44d987d3800f4e721228958686cbeccc
Author: Kendall Goto <[email protected]>
Date:   Wed Apr 8 11:20:07 2026 -0700

    target/arm_dap: delete entries from dap list when cleaning up
    
    During dap_cleanup_all, we currently free all of the objects. This
    change modifies the cleanup to actually delete the objects from the
    list to ensure the list does not point to freed memory and can be
    reused.
    
    Change-Id: If0264cb8f4e78375b81acd3cadbc7b3ae502c676
    Signed-off-by: Kendall Goto <[email protected]>

diff --git a/src/target/arm_dap.c b/src/target/arm_dap.c
index 07b695623c..79b43f8fc7 100644
--- a/src/target/arm_dap.c
+++ b/src/target/arm_dap.c
@@ -171,6 +171,7 @@ int dap_cleanup_all(void)
                        dap->ops->quit(dap);
 
                free(obj->name);
+               list_del(obj);
                free(obj);
        }
 

-- 

Reply via email to