From 7e2b1e80aafc431f8572ad57bb012f2dfe7f7c97 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 2 Feb 2013 11:47:25 +1100 Subject: [PATCH] Fix memory leak on stratum share submission. --- cgminer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 876abeda..2fe8ee6c 100644 --- a/cgminer.c +++ b/cgminer.c @@ -3140,7 +3140,8 @@ static void *submit_work_thread(void *userdata) char *noncehex; char s[1024]; - sshare->work = copy_work(work); + /* This work item is freed in parse_stratum_response */ + sshare->work = work; mutex_lock(&sshare_lock); /* Give the stratum share a unique id */ sshare->id = swork_id++;