summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikias Bassen <nikias@gmx.li>2016-01-28 16:29:08 +0100
committerNikias Bassen <nikias@gmx.li>2016-01-28 16:29:08 +0100
commit86dbc6cc25ddac32369ae5d47cec35cf16283ace (patch)
tree07690c0784c370010f17d19717037cc869768a78 /src
parent9120f132edffe4e05a31179c18453979656ffd3a (diff)
downloadusbmuxd-86dbc6cc25ddac32369ae5d47cec35cf16283ace.tar.gz
device: Plug small memory leak
Diffstat (limited to 'src')
-rw-r--r--src/device.c1
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;
}