summaryrefslogtreecommitdiff
path: root/net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch
blob: f9f0f43609ede53068c5448322920f2d34b90b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
https://bugs.gentoo.org/775560

commit 83f83d2cbc5e3044b314b914beb32dbb83a0055e
Author: Luke Dashjr <luke-jr+git@utopios.org>
Date:   Tue Feb 9 15:39:56 2021 +0000

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

diff --git a/miner.c b/miner.c
index 075ea4655..de62f13a0 100644
--- a/miner.c
+++ b/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();