]> git.sur5r.net Git - openocd/commit
target/cortex_m: do not leak memory on reexamination
authorPaul Fertser <fercerpav@gmail.com>
Wed, 11 Feb 2015 08:02:34 +0000 (11:02 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Mon, 9 Mar 2015 06:40:21 +0000 (06:40 +0000)
commit11b6ab90fb59bb2f794bbf7ca4cb89964ead6280
tree7d0a83e1c114a91c2088384a43e2ef566612164d
parentb71ae9b1a704a9631698d7d4a92b1dfdfc9a0f69
target/cortex_m: do not leak memory on reexamination

This bug was exposed by Valgrind.

Change-Id: If50878664d928c0a44e309ca1452089c1ac71466
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2542
Tested-by: jenkins
Reviewed-by: Stian Skjelstad <stian@nixia.no>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/cortex_m.c
src/target/register.c
src/target/register.h