Browse Source

Merge branch 'bugfix_clr_work_replaced' into bfgminer

Luke Dashjr 13 years ago
parent
commit
3ed6656aed
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -6003,6 +6003,8 @@ keepwaiting:
 			pool_resus(pool);
 	}
 
+	clear_work(work);
+	// NOTE: Since we are moving the references (if any), use free instead of free_work here
 	memcpy(work, work_heap, sizeof(struct work));
 	free(work_heap);