mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-09 13:34:18 +00:00
VS2010 build: fix a segfault from a removed realloc.
This commit is contained in:
parent
87e5f35745
commit
761f100ab9
@ -520,6 +520,7 @@ struct pool *add_pool(void)
|
||||
pool->has_stratum ? pool->stratum_port : "");
|
||||
pool->poolname = strdup(buf);
|
||||
|
||||
pools = realloc(pools, sizeof(struct pool *) * (total_pools + 2));
|
||||
pools[total_pools++] = pool;
|
||||
mutex_init(&pool->pool_lock);
|
||||
if (unlikely(pthread_cond_init(&pool->cr_cond, NULL)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user