Browse Source

Bugfix: Free work before replacing it with clone

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

+ 1 - 0
miner.c

@@ -8006,6 +8006,7 @@ retry:
 			if (!last_work)
 				{}
 			if (can_roll(last_work) && should_roll(last_work)) {
+				free_work(work);
 				work = make_clone(pool->last_work_copy);
 				mutex_unlock(&pool->last_work_lock);
 				roll_work(work);