summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index db1b118..d36234f 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -1405,13 +1405,12 @@ IRECV_API irecv_error_t irecv_open_with_ecid(irecv_client_t* pclient, unsigned l
}
*pclient = client;
-
- libusb_free_device_list(usb_device_list, 1);
-
ret = IRECV_E_SUCCESS;
+ break;
}
}
}
+ libusb_free_device_list(usb_device_list, 1);
#endif
#else
ret = mobiledevice_connect(pclient, ecid);