diff options
-rw-r--r-- | src/device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index ddd1d4a..5374d7c 100644 --- a/src/device.c +++ b/src/device.c @@ -829,6 +829,7 @@ int device_add(struct usb_device *usbdev) vh.padding = 0; if((res = send_packet(dev, MUX_PROTO_VERSION, &vh, NULL, 0)) < 0) { usbmuxd_log(LL_ERROR, "Error sending version request packet to device %d", id); + free(dev->pktbuf); free(dev); return res; } |