]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/usb.c
sr_parse_(period|voltage): deprecate struct sr_rational
[libsigrok.git] / hardware / common / usb.c
index 584a09dc383f4a0014331a82a648effa19de1737..efe4eb432a1444c854da118a3a15945707a0c40a 100644 (file)
@@ -25,7 +25,7 @@
 #include "libsigrok.h"
 #include "libsigrok-internal.h"
 
-/* SR_HWCAP_CONN takes one of these: */
+/* SR_CONF_CONN takes one of these: */
 #define CONN_USB_VIDPID  "^([0-9a-z]{1,4})\\.([0-9a-z]{1,4})$"
 #define CONN_USB_BUSADDR "^(\\d+)\\.(\\d+)$"
 
@@ -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);