Commit ad8e0f13ea987eee56e8baea4fed6b28e466a610

Con Kolivas 2013-10-21T12:25:15

Free hashfast structures allocated on driver shutdown.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/driver-hashfast.c b/driver-hashfast.c
index dfb06ce..1a93d11 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -859,6 +859,10 @@ static void hfa_shutdown(struct thr_info *thr)
 	hfa_free_all_work(info);
 	hfa_clear_readbuf(hashfast);
 	usb_buffer_disable(hashfast);
+	free(info->works);
+	free(info->die_statistics);
+	free(info->die_status);
+	free(info);
 }
 
 struct device_drv hashfast_drv = {