summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usb.c b/src/usb.c
index c98b58a..3c97b65 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -683,8 +683,8 @@ static void get_mode_cb(struct libusb_transfer* transfer)
if(transfer->status != LIBUSB_TRANSFER_COMPLETED) {
usbmuxd_log(LL_ERROR, "Failed to request get mode for device %i-%i (%i). Completing initialization in current mode",
context->bus, context->address, transfer->status);
- free(context);
device_complete_initialization(context, transfer->dev_handle);
+ free(context);
return;
}