ftdi_usb_find_all() requires a free()

This commit is contained in:
Patrick Siegl
2019-03-28 22:19:02 +01:00
parent 64fe6d84a6
commit 1dee982ba0

View File

@@ -241,6 +241,7 @@ devlist_node listUSBDevices(char **message) {
current_entry->next = NULL;
}
}
ftdi_list_free2(devlist);
return return_list;
}
@@ -255,6 +256,7 @@ bool initializeUSB(struct ftdi_context *ftdic, char **message, char *serial) {
*message = "Can't find Infinite Noise Multiplier";
return false;
}
ftdi_list_free2(devlist);
// only one found, or no serial given
if (serial == NULL) {