summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/preflight.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/preflight.c b/src/preflight.c
index c40311c..b616e5f 100644
--- a/src/preflight.c
+++ b/src/preflight.c
@@ -134,9 +134,11 @@ retry:
134 134
135 if (strcmp(type, "com.apple.mobile.lockdown") != 0) { 135 if (strcmp(type, "com.apple.mobile.lockdown") != 0) {
136 // make restore mode devices visible 136 // make restore mode devices visible
137 free(type);
137 client_device_add(info); 138 client_device_add(info);
138 goto leave; 139 goto leave;
139 } 140 }
141 free(type);
140 142
141 int is_device_paired = 0; 143 int is_device_paired = 0;
142 char *host_id = NULL; 144 char *host_id = NULL;