]> sigrok.org Git - libsigrok.git/commitdiff
free USB config descriptor after use
authorBert Vermeulen <redacted>
Sat, 19 Jan 2013 12:20:34 +0000 (13:20 +0100)
committerBert Vermeulen <redacted>
Mon, 21 Jan 2013 22:32:49 +0000 (23:32 +0100)
hardware/common/usb.c

index 584a09dc383f4a0014331a82a648effa19de1737..5cc89612317d420bf437ad2cd2c82ce2f77d6ee3 100644 (file)
@@ -189,6 +189,7 @@ SR_PRIV GSList *sr_usb_find_usbtmc(libusb_context *usb_ctx)
                                                libusb_get_device_address(devlist[i]), NULL);
                                devices = g_slist_append(devices, usb);
                        }
+                       libusb_free_config_descriptor(confdes);
                }
        }
        libusb_free_device_list(devlist, 1);