From: Bert Vermeulen Date: Mon, 6 May 2013 18:44:26 +0000 (+0200) Subject: fx2lafw: Fix memory leak X-Git-Tag: libsigrok-0.2.1~105 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9dc7a75e3d4bc4078b23c62626c359e5a9e73b57;p=libsigrok.git fx2lafw: Fix memory leak --- diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index c7cd2c12..91396cbf 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -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; }