and again, libusb_free_transfer frees the buffer
authorMichael Gernoth <michael@gernoth.net>
Sun, 2 Jun 2013 12:24:34 +0000 (14:24 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 2 Jun 2013 12:24:34 +0000 (14:24 +0200)
hmcfgusb.c

index bfe0369..9f02480 100644 (file)
@@ -234,7 +234,6 @@ static void LIBUSB_CALL hmcfgusb_interrupt(struct libusb_transfer *transfer)
        err = libusb_submit_transfer(transfer);
        if (err != 0) {
                fprintf(stderr, "Can't re-submit transfer: %s\n", usb_strerror(err));
-               free(transfer->buffer);
                libusb_free_transfer(transfer);
        }
 }
Impressum, Datenschutz