Browse Source

Merge branch 'bugfix_clr_work_replaced' into bfgminer-2.8.x

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

+ 2 - 0
miner.c

@@ -5139,6 +5139,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);