Browse Source

Free stratum buffers added to the work struct when freeing work ram.

Con Kolivas 13 years ago
parent
commit
13fdff6531
1 changed files with 5 additions and 0 deletions
  1. 5 0
      cgminer.c

+ 5 - 0
cgminer.c

@@ -2190,6 +2190,11 @@ static struct work *make_work(void)
 
 
 static void free_work(struct work *work)
 static void free_work(struct work *work)
 {
 {
+	if (work->stratum) {
+		free(work->job_id);
+		free(work->nonce2);
+		free(work->ntime);
+	}
 	free(work);
 	free(work);
 }
 }