target/cortex_a: fix memory leak on watchpoints
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 7 May 2021 14:17:32 +0000 (16:17 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Thu, 3 Jun 2021 22:27:20 +0000 (23:27 +0100)
commit3bd26ebb59e2932b361b40176b818174f561f901
tree6bf4fd2bce8a5ac915f7fcb1ae6ec223366c1d52
parent0c64bb2583a67b551a482ddc13a08dc71a143da3
target/cortex_a: fix memory leak on watchpoints

The memory allocated to hold the watchpoints is not freed at
OpenOCD exit.

Free the watchpoint memory at OpenOCD exit.

Change-Id: I518c9ce0dc901cde2913d752e3154734f878b854
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6210
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
src/target/cortex_a.c