diff --git a/cpu-miner.c b/cpu-miner.c index 01100be..252fa9a 100755 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -690,6 +690,8 @@ static bool submit_upstream_work(CURL *curl, struct work *work) } rc = true; + free(str); + return rc; } static const char *rpc_req = @@ -772,6 +774,8 @@ static bool rpc2_login(CURL *curl) } json_decref(val); + + return rc; } static void workio_cmd_free(struct workio_cmd *wc)