1
0
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:
Con Kolivas 2013-06-05 21:27:57 +10:00
parent 05123bf452
commit 62585778e7

View File

@ -2538,6 +2538,7 @@ void usb_buffer_disable(struct cgpu_info *cgpu)
cgusb->bufamt = 0; cgusb->bufamt = 0;
cgusb->bufsiz = 0; cgusb->bufsiz = 0;
free(cgusb->buffer); free(cgusb->buffer);
cgusb->buffer = NULL;
} }
} }