Commit 80d4355737e9f8e5adedd253ae4d470a68bd70a0

Con Kolivas 2012-10-08T22:59:50

Remove free that could segfault.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index c410c72..6a2f3af 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4285,7 +4285,6 @@ retry_stratum:
 	 * and if so, switch to that in preference to getwork if it works */
 	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);
-		free(pool->rpc_url);
 		pool->rpc_url = strdup(pool->stratum_url);
 		pool->has_stratum = true;
 		curl_easy_cleanup(curl);