Memleak fix
diff --git a/ChangeLog b/ChangeLog
index 8d29c7a..6ef0a9d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-26  Linus Walleij <triad@df.lth.se>
+
+	* src/libusb-glue.c: memory leak: dangling, unused poiter killed.
+
 2007-04-23  Linus Walleij <triad@df.lth.se>
 
 	* src/libmtp.h.in: extend LIBMTP_album_t to include fields for
diff --git a/src/libusb-glue.c b/src/libusb-glue.c
index 3a33e04..a9818ef 100644
--- a/src/libusb-glue.c
+++ b/src/libusb-glue.c
@@ -1122,7 +1122,6 @@
 {
 	uint16_t ret;
 	PTPUSBBulkContainer usbdata;
-	unsigned char	*data;
 	unsigned long	written;
 
 	memset(&usbdata,0,sizeof(usbdata));
@@ -1205,7 +1204,6 @@
 		if (dtoh32(usbdata.length) > 12 && (rlen==12))
 			params->split_header_data = 1;
 
-		data = malloc(PTP_USB_BULK_HS_MAX_PACKET_LEN_READ);
 		/* Copy first part of data to 'data' */
 		handler->putfunc(
 			params, handler->private, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data,