From 16c7c983ae9e5ce03a2adc2c573a0c62bfdfefde Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 15 Feb 2013 20:27:07 +1100 Subject: [PATCH] Free sessionid in clean_work and remove redundant setting of strings to NULL since the whole work struct is zeroed. --- cgminer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cgminer.c b/cgminer.c index a9f34d5e..47496dfc 100644 --- a/cgminer.c +++ b/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)); }