]> cvs.zerfleddert.de Git - hmcfgusb/blobdiff - hmcfgusb.c
data buffer is freed by libusb_free_transfer
[hmcfgusb] / hmcfgusb.c
index ace2e57cb6934367629eb88e60a2eb32ca401393..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;
        }
 
@@ -317,6 +316,8 @@ struct hmcfgusb_dev *hmcfgusb_init(hmcfgusb_cb_fn cb, void *data)
 
        dev->n_pfd = dev->n_usb_pfd;
 
+       quit = 0;
+
        return dev;
 }
 
Impressum, Datenschutz