Fix memory waste in allocated_transfers

Did a search for allocations & all others were fine
This commit is contained in:
Sasszem
2023-01-04 22:09:49 +01:00
parent eff4a20022
commit b52631b6f5

View File

@ -287,7 +287,7 @@ static int allocate_transfers(hackrf_device* const device)
uint32_t transfer_index;
device->transfers = (struct libusb_transfer**) calloc(
TRANSFER_COUNT,
sizeof(struct libusb_transfer));
sizeof(struct libusb_transfer*));
if (device->transfers == NULL) {
return HACKRF_ERROR_NO_MEM;
}