From: Bert Vermeulen Date: Sat, 19 Jan 2013 12:20:34 +0000 (+0100) Subject: free USB config descriptor after use X-Git-Tag: dsupstream~336 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d8e3685c47088c3219c004885d1be3c34c6503a6;p=libsigrok.git free USB config descriptor after use --- diff --git a/hardware/common/usb.c b/hardware/common/usb.c index 584a09dc..5cc89612 100644 --- a/hardware/common/usb.c +++ b/hardware/common/usb.c @@ -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);