Browse Source

Bugfix: bitforce: Avoid double-free of voltage data

Luke Dashjr 11 years ago
parent
commit
4bb2bed52b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      driver-bitforce.c

+ 1 - 0
driver-bitforce.c

@@ -1633,6 +1633,7 @@ void bitforce_zero_stats(struct cgpu_info * const proc)
 	data->volts_count = 0;
 	data->temp[0] = data->temp[1] = 0;
 	free(data->volts);
+	data->volts = NULL;
 	
 	proc->avg_wait_f = 0;
 }