From cbfa78eae49ac6fe66bb326ecd5dca1bbcd2b007 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 13 Oct 2013 22:26:26 +1100 Subject: [PATCH] Device data will not be allocated in hashfast_detect_one_usb so no point freeing it. --- driver-hashfast.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/driver-hashfast.c b/driver-hashfast.c index 35def805..d71686e6 100644 --- a/driver-hashfast.c +++ b/driver-hashfast.c @@ -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; }