Browse Source

Merge branch 'bugfix_clear_work_tmpl' into bfgminer-2.8.x

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

+ 2 - 2
miner.c

@@ -2700,9 +2700,9 @@ void clear_work(struct work *work)
 		if (free_tmpl) {
 			blktmpl_free(work->tmpl);
 			free(work->tmpl_refcount);
-			work->tmpl = NULL;
-			work->tmpl_refcount = NULL;
 		}
+		work->tmpl = NULL;
+		work->tmpl_refcount = NULL;
 	}
 }