mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-10 12:59:25 +02:00
stratum_api: free job_id string
This commit is contained in:
parent
ca827ee4b5
commit
83ad62322a
@ -45,7 +45,7 @@ static void realloc_json_buffer(size_t len)
|
||||
}
|
||||
|
||||
new = new + (BUFFER_SIZE - (new % BUFFER_SIZE));
|
||||
void *new_sockbuf = realloc(json_rpc_buffer, new);
|
||||
void * new_sockbuf = realloc(json_rpc_buffer, new);
|
||||
|
||||
if (new_sockbuf == NULL)
|
||||
{
|
||||
@ -146,6 +146,7 @@ mining_notify parse_mining_notify_message(const char * stratum_json)
|
||||
|
||||
void free_mining_notify(mining_notify params)
|
||||
{
|
||||
free(params.job_id);
|
||||
free(params.prev_block_hash);
|
||||
free(params.coinbase_1);
|
||||
free(params.coinbase_2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user