1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 23:14:21 +00:00

Free stratum buffers added to the work struct when freeing work ram.

This commit is contained in:
Con Kolivas 2012-09-29 15:13:18 +10:00
parent aa93fa336c
commit 13fdff6531

View File

@ -2190,6 +2190,11 @@ static struct work *make_work(void)
static void free_work(struct work *work)
{
if (work->stratum) {
free(work->job_id);
free(work->nonce2);
free(work->ntime);
}
free(work);
}