data buffer is freed by libusb_free_transfer
authorMichael Gernoth <michael@gernoth.net>
Sun, 2 Jun 2013 11:54:53 +0000 (13:54 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 2 Jun 2013 11:54:53 +0000 (13:54 +0200)
hmcfgusb.c

index 1a6bb76..bfe0369 100644 (file)
@@ -191,7 +191,6 @@ static struct libusb_transfer *hmcfgusb_prepare_int(libusb_device_handle *devh,
        if (err != 0) {
                fprintf(stderr, "Can't submit transfer: %s\n", usb_strerror(err));
                libusb_free_transfer(transfer);
-               free(data_buf);
                return NULL;
        }
 
Impressum, Datenschutz