diff options
author | Nikias Bassen | 2016-01-28 16:29:08 +0100 |
---|---|---|
committer | Nikias Bassen | 2016-01-28 16:29:08 +0100 |
commit | 86dbc6cc25ddac32369ae5d47cec35cf16283ace (patch) | |
tree | 07690c0784c370010f17d19717037cc869768a78 /src | |
parent | 9120f132edffe4e05a31179c18453979656ffd3a (diff) | |
download | usbmuxd-86dbc6cc25ddac32369ae5d47cec35cf16283ace.tar.gz usbmuxd-86dbc6cc25ddac32369ae5d47cec35cf16283ace.tar.bz2 |
device: Plug small memory leak
Diffstat (limited to 'src')
-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; } |