Browse Source

Merge commit '7341aba' into bfgminer

Luke Dashjr 12 years ago
parent
commit
320e7edeba
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -7084,6 +7084,8 @@ void __thr_being_msg(struct thr_info *thr, const char *being)
 void mt_disable_start(struct thr_info *mythr)
 void mt_disable_start(struct thr_info *mythr)
 {
 {
 	hashmeter2(mythr);
 	hashmeter2(mythr);
+	if (mythr->prev_work)
+		free_work(mythr->prev_work);
 	mythr->prev_work = mythr->work;
 	mythr->prev_work = mythr->work;
 	mythr->work = NULL;
 	mythr->work = NULL;
 	mythr->_job_transition_in_progress = false;
 	mythr->_job_transition_in_progress = false;