1
0
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:
Noel Maersk 2014-01-28 03:29:23 +02:00
parent 87e5f35745
commit 761f100ab9

View File

@ -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)))