From 13fdff6531a6586dadebff913d85252577fb5bb7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 29 Sep 2012 15:13:18 +1000 Subject: [PATCH] Free stratum buffers added to the work struct when freeing work ram. --- cgminer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cgminer.c b/cgminer.c index 645414bf..285cd53c 100644 --- a/cgminer.c +++ b/cgminer.c @@ -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); }