fx2lafw: Fix memory leak
This commit is contained in:
parent
03f4de8cf2
commit
9dc7a75e3d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue