Browse Source

Bugfix: miner: Can't free cpus in non-cpumining builds anymore

Luke Dashjr 5 years ago
parent
commit
83f83d2cbc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -11197,8 +11197,10 @@ void _bfg_clean_up(bool restarting)
 			print_summary();
 	}
 
+#ifdef USE_CPUMINING
 	if (opt_n_threads > 0)
 		free(cpus);
+#endif
 
 	curl_global_cleanup();