mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-07-12 14:42:31 +02:00
Left a dangling pointer (#240)
* Clean up and return 0 on recv, let task reconnect * Set json buffer to null --------- Co-authored-by: tommy <tommy@tommywatson.com> Co-authored-by: Skot <skot@bitnet.cx>
This commit is contained in:
@ -86,6 +86,7 @@ char * STRATUM_V1_receive_jsonrpc_line(int sockfd)
|
||||
ESP_LOGI(TAG, "Error: recv");
|
||||
if (json_rpc_buffer) {
|
||||
free(json_rpc_buffer);
|
||||
json_rpc_buffer=0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user