fx2lafw: Fix memory leak

This commit is contained in:
Bert Vermeulen 2013-05-06 20:44:26 +02:00
parent 03f4de8cf2
commit 9dc7a75e3d
1 changed files with 1 additions and 0 deletions

View 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;
}