]> git.zerfleddert.de Git - hmcfgusb/commitdiff
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 1a6bb760eb36764eb2d9b2c736bcd4244db4778b..bfe0369d28ca865deb0840219ed307eb2782bd7f 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