Browse Source

Bugfix: bitforce: Free initialization data to avoid trivial one-time memory leak

Luke Dashjr 13 years ago
parent
commit
d8d09426e7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-bitforce.c

+ 2 - 0
driver-bitforce.c

@@ -1022,6 +1022,8 @@ static bool bitforce_thread_init(struct thr_info *thr)
 	
 	
 	bitforce = thr->cgpu;
 	bitforce = thr->cgpu;
 
 
+	free(initdata);
+
 	/* Pause each new thread at least 100ms between initialising
 	/* Pause each new thread at least 100ms between initialising
 	 * so the devices aren't making calls all at the same time. */
 	 * so the devices aren't making calls all at the same time. */
 	wait = thr->id * MAX_START_DELAY_MS;
 	wait = thr->id * MAX_START_DELAY_MS;