]> git.zerfleddert.de Git - hmcfgusb/commitdiff
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 bfe0369d28ca865deb0840219ed307eb2782bd7f..9f024801b141fab52c4928431c8fd6effa3e3a28 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));
        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);
        }
 }
                libusb_free_transfer(transfer);
        }
 }
Impressum, Datenschutz