From 00c4dbfb11e389176bdb2d45a262eb47229cd80b Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Thu, 5 Jul 2012 19:23:28 +1200 Subject: ADIv5 AP and DP are now allocated on the heap and reference counted. They are unref'd and free'd automatically when the target list is destroyed. --- src/target.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/target.c') diff --git a/src/target.c b/src/target.c index 5189929..a28c55f 100644 --- a/src/target.c +++ b/src/target.c @@ -42,6 +42,8 @@ void target_list_free(void) target *t = target_list->next; if (target_list->destroy_callback) target_list->destroy_callback(target_list); + if (target_list->priv) + target_list->priv_free(target_list->priv); while (target_list->commands) { tc = target_list->commands->next; free(target_list->commands); -- cgit v1.2.3