]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
fx2lafw: Fix memory leak
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index c7cd2c12fb754d1afb3646f612e8f72835fd6403..91396cbf737119ce55e356e1b721a1876d2c1650 100644 (file)
@@ -467,6 +467,7 @@ static GSList *hw_scan(GSList *options)
                }
        }
        libusb_free_device_list(devlist, 1);
+       g_slist_free_full(conn_devices, (GDestroyNotify)sr_usb_dev_inst_free);
 
        return devices;
 }