aboutsummaryrefslogtreecommitdiff
path: root/src/adiv5_swdp.c
diff options
context:
space:
mode:
authorGareth McMullin2011-02-18 13:50:21 +1300
committerGareth McMullin2011-02-18 13:50:21 +1300
commit0dfdc25bb27a6cf56f13a1f9a1c1b233d6aab107 (patch)
tree93d34d117c9e179df21b39fd5a45c8b2c08034ae /src/adiv5_swdp.c
parent660e861725828de1d6598414b22bfa8e7ee7de04 (diff)
Added git info to version output.
Fixed memory leak in SWD mode.
Diffstat (limited to 'src/adiv5_swdp.c')
-rw-r--r--src/adiv5_swdp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adiv5_swdp.c b/src/adiv5_swdp.c
index 2c22749..432e54a 100644
--- a/src/adiv5_swdp.c
+++ b/src/adiv5_swdp.c
@@ -54,6 +54,9 @@ int adiv5_swdp_scan(void)
uint8_t ack;
TARGET_LIST_FREE();
+#warning "These should be elsewhere!"
+ adiv5_free_all();
+
dp = (void*)calloc(1, sizeof(ADIv5_DP_t));
swdptap_init();