Permalink
Browse files

Free sessionid in clean_work and remove redundant setting of strings …

…to NULL since the whole work struct is zeroed.
  • Loading branch information...
ckolivas committed Feb 15, 2013
1 parent 8fdf6d5 commit 16c7c983ae9e5ce03a2adc2c573a0c62bfdfefde
Showing with 1 addition and 4 deletions.
  1. +1 −4 cgminer.c
@@ -1380,10 +1380,7 @@ void clean_work(struct work *work)
free(work->nonce2);
free(work->ntime);
free(work->gbt_coinbase);
work->job_id = NULL;
work->nonce2 = NULL;
work->ntime = NULL;
work->gbt_coinbase = NULL;
free(work->sessionid);
memset(work, 0, sizeof(struct work));
}

0 comments on commit 16c7c98

Please sign in to comment.