mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Fix memory leak on stratum share submission.
This commit is contained in:
parent
ec9b32aac0
commit
7e2b1e80aa
@ -3140,7 +3140,8 @@ static void *submit_work_thread(void *userdata)
|
|||||||
char *noncehex;
|
char *noncehex;
|
||||||
char s[1024];
|
char s[1024];
|
||||||
|
|
||||||
sshare->work = copy_work(work);
|
/* This work item is freed in parse_stratum_response */
|
||||||
|
sshare->work = work;
|
||||||
mutex_lock(&sshare_lock);
|
mutex_lock(&sshare_lock);
|
||||||
/* Give the stratum share a unique id */
|
/* Give the stratum share a unique id */
|
||||||
sshare->id = swork_id++;
|
sshare->id = swork_id++;
|
||||||
|
Loading…
Reference in New Issue
Block a user