|
|
|
@ -523,7 +523,7 @@ static void purge_share_hashtable(sdata_t *sdata, int64_t wb_id)
|
|
|
|
|
HASH_ITER(hh, sdata->shares, share, tmp) { |
|
|
|
|
if (share->workbase_id < wb_id) { |
|
|
|
|
HASH_DEL(sdata->shares, share); |
|
|
|
|
free(share); |
|
|
|
|
dealloc(share); |
|
|
|
|
purged++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -2069,6 +2069,7 @@ static int send_recv_auth(stratum_instance_t *client)
|
|
|
|
|
out_fail: |
|
|
|
|
ret = -1; |
|
|
|
|
out: |
|
|
|
|
free(buf); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|