forked from auracaster/openocd
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>
This commit is contained in:
@@ -146,6 +146,7 @@ struct reg_arch_type {
|
||||
struct reg *register_get_by_name(struct reg_cache *first,
|
||||
const char *name, bool search_all);
|
||||
struct reg_cache **register_get_last_cache_p(struct reg_cache **first);
|
||||
void register_unlink_cache(struct reg_cache **cache_p, const struct reg_cache *cache);
|
||||
void register_cache_invalidate(struct reg_cache *cache);
|
||||
|
||||
void register_init_dummy(struct reg *reg);
|
||||
|
||||
Reference in New Issue
Block a user