mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +00:00
Remove free that could segfault.
This commit is contained in:
parent
e0864a61d1
commit
80d4355737
@ -4285,7 +4285,6 @@ retry_stratum:
|
|||||||
* and if so, switch to that in preference to getwork if it works */
|
* and if so, switch to that in preference to getwork if it works */
|
||||||
if (pool->stratum_url && stratum_works(pool)) {
|
if (pool->stratum_url && stratum_works(pool)) {
|
||||||
applog(LOG_NOTICE, "Switching pool %d %s to %s", pool->pool_no, pool->rpc_url, pool->stratum_url);
|
applog(LOG_NOTICE, "Switching pool %d %s to %s", pool->pool_no, pool->rpc_url, pool->stratum_url);
|
||||||
free(pool->rpc_url);
|
|
||||||
pool->rpc_url = strdup(pool->stratum_url);
|
pool->rpc_url = strdup(pool->stratum_url);
|
||||||
pool->has_stratum = true;
|
pool->has_stratum = true;
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user