mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-11 18:03:08 +01:00
Merge pull request #1253 from Sasszem/memory-waste
Fix memory waste in allocated_transfers
This commit is contained in:
@@ -288,7 +288,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user