Browse Source

Semi-Merge commit '16c7c98' into cg_merges_20130304a (only remove redundant clears)

Conflicts:
	miner.c
Luke Dashjr 13 years ago
parent
commit
89d5c30f15
1 changed files with 1 additions and 4 deletions
  1. 1 4
      miner.c

+ 1 - 4
miner.c

@@ -1739,13 +1739,10 @@ static struct work *make_work(void)
  * cleaned to remove any dynamically allocated arrays within the struct */
 void clean_work(struct work *work)
 {
-	free(work->sessionid);
 	free(work->job_id);
 	free(work->nonce2);
 	free(work->ntime);
-	work->job_id = NULL;
-	work->nonce2 = NULL;
-	work->ntime = NULL;
+	free(work->sessionid);
 
 	if (work->tmpl) {
 		struct pool *pool = work->pool;