From 62585778e70e774d6f3ab73f5c585dba13af70d9 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 5 Jun 2013 21:27:57 +1000 Subject: [PATCH] Set cgusb->buffer to NULL when doing usb_buffer_disable. --- usbutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usbutils.c b/usbutils.c index 13167af0..c793b9ab 100644 --- a/usbutils.c +++ b/usbutils.c @@ -2538,6 +2538,7 @@ void usb_buffer_disable(struct cgpu_info *cgpu) cgusb->bufamt = 0; cgusb->bufsiz = 0; free(cgusb->buffer); + cgusb->buffer = NULL; } }