diff options
Diffstat (limited to 'src/iphone.c')
| -rw-r--r-- | src/iphone.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/iphone.c b/src/iphone.c index f3b7202..9027e35 100644 --- a/src/iphone.c +++ b/src/iphone.c | |||
| @@ -42,7 +42,6 @@ int iphone_get_device ( iphone_device_t *device ){ | |||
| 42 | struct usb_bus *bus, *busses; | 42 | struct usb_bus *bus, *busses; |
| 43 | struct usb_device *dev; | 43 | struct usb_device *dev; |
| 44 | iphone_device_t phone = (iphone_device_t)malloc(sizeof(struct iphone_device_int)); | 44 | iphone_device_t phone = (iphone_device_t)malloc(sizeof(struct iphone_device_int)); |
| 45 | usbmux_version_header *version = version_header(); | ||
| 46 | 45 | ||
| 47 | // Initialize the struct | 46 | // Initialize the struct |
| 48 | phone->device = NULL; | 47 | phone->device = NULL; |
| @@ -126,7 +125,7 @@ int iphone_get_device ( iphone_device_t *device ){ | |||
| 126 | if (debug) fprintf(stderr, "get_iPhone(): Unknown error.\n"); | 125 | if (debug) fprintf(stderr, "get_iPhone(): Unknown error.\n"); |
| 127 | free_iPhone(phone); | 126 | free_iPhone(phone); |
| 128 | free(version); | 127 | free(version); |
| 129 | return IPHONE_E_NO_DEVICE; // if it got to this point it's gotta be bad | 128 | return IPHONE_E_UNKNOWN_ERROR; // if it got to this point it's gotta be bad |
| 130 | } | 129 | } |
| 131 | 130 | ||
| 132 | /** Cleans up an iPhone structure, then frees the structure itself. | 131 | /** Cleans up an iPhone structure, then frees the structure itself. |
