mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Set cgusb->buffer to NULL when doing usb_buffer_disable.
This commit is contained in:
parent
05123bf452
commit
62585778e7
@ -2538,6 +2538,7 @@ void usb_buffer_disable(struct cgpu_info *cgpu)
|
||||
cgusb->bufamt = 0;
|
||||
cgusb->bufsiz = 0;
|
||||
free(cgusb->buffer);
|
||||
cgusb->buffer = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user