aboutsummaryrefslogtreecommitdiff
path: root/src/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target.c')
-rw-r--r--src/target.c2
1 files changed, 2 insertions, 0 deletions
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);