From 86dbc6cc25ddac32369ae5d47cec35cf16283ace Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 28 Jan 2016 16:29:08 +0100 Subject: device: Plug small memory leak --- src/device.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.1