From 54853a2479c6895d687ed037e9961065ef1396f6 Mon Sep 17 00:00:00 2001 From: Matlo Date: Mon, 9 May 2016 21:35:03 +0200 Subject: [PATCH] Fix possible double-free. --- core/connectors/usb_con.c | 1 - 1 file changed, 1 deletion(-) diff --git a/core/connectors/usb_con.c b/core/connectors/usb_con.c index ee2d3fb2..ce8e3927 100644 --- a/core/connectors/usb_con.c +++ b/core/connectors/usb_con.c @@ -429,7 +429,6 @@ static int submit_transfer(struct libusb_transfer * transfer) { fprintf(stderr, "libusb_submit_transfer: %s.\n", libusb_strerror(ret)); remove_transfer(transfer); - free(transfer->buffer); libusb_free_transfer(transfer); return -1; }