projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
target/cortex_a: fix memory leak on watchpoints
[fw/openocd]
/
src
/
target
/
cortex_a.c
diff --git
a/src/target/cortex_a.c
b/src/target/cortex_a.c
index 9a48cc8b1b93a8ac449dc924a7e45ffe0e639df6..35f149970b3171efb98319bf887c2e08d1cc3493 100644
(file)
--- a/
src/target/cortex_a.c
+++ b/
src/target/cortex_a.c
@@
-3181,6
+3181,7
@@
static void cortex_a_deinit_target(struct target *target)
dscr & ~DSCR_HALT_DBG_MODE);
}
+ free(cortex_a->wrp_list);
free(cortex_a->brp_list);
arm_free_reg_cache(dpm->arm);
free(dpm->dbp);