mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
Free sessionid in clean_work and remove redundant setting of strings to NULL since the whole work struct is zeroed.
This commit is contained in:
parent
8fdf6d5c64
commit
16c7c983ae
@ -1380,10 +1380,7 @@ void clean_work(struct work *work)
|
|||||||
free(work->nonce2);
|
free(work->nonce2);
|
||||||
free(work->ntime);
|
free(work->ntime);
|
||||||
free(work->gbt_coinbase);
|
free(work->gbt_coinbase);
|
||||||
work->job_id = NULL;
|
free(work->sessionid);
|
||||||
work->nonce2 = NULL;
|
|
||||||
work->ntime = NULL;
|
|
||||||
work->gbt_coinbase = NULL;
|
|
||||||
memset(work, 0, sizeof(struct work));
|
memset(work, 0, sizeof(struct work));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user