diff options
Diffstat (limited to 'dev/afccheck.c')
| -rw-r--r-- | dev/afccheck.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c index 370742b..067dd5b 100644 --- a/dev/afccheck.c +++ b/dev/afccheck.c | |||
| @@ -105,13 +105,13 @@ int main(int argc, char *argv[]) | |||
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 107 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { |
| 108 | iphone_free_device(phone); | 108 | iphone_device_free(phone); |
| 109 | return 1; | 109 | return 1; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | if (LOCKDOWN_E_SUCCESS == lockdownd_start_service(client, "com.apple.afc", &port) && !port) { | 112 | if (LOCKDOWN_E_SUCCESS == lockdownd_start_service(client, "com.apple.afc", &port) && !port) { |
| 113 | lockdownd_client_free(client); | 113 | lockdownd_client_free(client); |
| 114 | iphone_free_device(phone); | 114 | iphone_device_free(phone); |
| 115 | fprintf(stderr, "Something went wrong when starting AFC."); | 115 | fprintf(stderr, "Something went wrong when starting AFC."); |
| 116 | return 1; | 116 | return 1; |
| 117 | } | 117 | } |
| @@ -137,7 +137,7 @@ int main(int argc, char *argv[]) | |||
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | lockdownd_client_free(client); | 139 | lockdownd_client_free(client); |
| 140 | iphone_free_device(phone); | 140 | iphone_device_free(phone); |
| 141 | 141 | ||
| 142 | return 0; | 142 | return 0; |
| 143 | } | 143 | } |
