Commit 1d672074733f0b70569a6fbe0acb6bfa385b9b43

Con Kolivas 2014-05-04T13:51:26

Work should be freed when aged, fixing a massive memory leak for bxf devices

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index a802c2f..4df1c1b 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7539,6 +7539,7 @@ int age_queued_work(struct cgpu_info *cgpu, double secs)
 	HASH_ITER(hh, cgpu->queued_work, work, tmp) {
 		if (tdiff(&tv_now, &work->tv_work_start) > secs) {
 			__work_completed(cgpu, work);
+			free_work(work);
 			aged++;
 		}
 	}