]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Fix memory leak
authorBert Vermeulen <redacted>
Mon, 6 May 2013 18:44:26 +0000 (20:44 +0200)
committerBert Vermeulen <redacted>
Mon, 6 May 2013 18:44:26 +0000 (20:44 +0200)
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;
 }