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