1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-09 20:21:01 +00:00

Device data will not be allocated in hashfast_detect_one_usb so no point freeing it.

This commit is contained in:
Con Kolivas 2013-10-13 22:26:26 +11:00
parent 49befae6e4
commit cbfa78eae4

View File

@ -328,8 +328,6 @@ static bool hashfast_detect_one_usb(libusb_device *dev, struct usb_find_devices
quit(1, "Failed to usb_alloc_cgpu hashfast");
if (!usb_init(hashfast, dev, found)) {
free(hashfast->device_data);
hashfast->device_data = NULL;
hashfast = usb_free_cgpu(hashfast);
return false;
}