Browse Source

Bugfix: Cast to void* to free

Luke Dashjr 14 years ago
parent
commit
5a1c66d191
1 changed files with 1 additions and 1 deletions
  1. 1 1
      adl.c

+ 1 - 1
adl.c

@@ -361,7 +361,7 @@ void init_adl(int nDevs)
 
 		applog(LOG_INFO, "GPU %d %s hardware monitoring enabled", gpu, lpInfo[i].strAdapterName);
 		if (gpus[gpu].name)
-			free(gpus[gpu].name);
+			free((void*)gpus[gpu].name);
 		gpus[gpu].name = lpInfo[i].strAdapterName;
 		gpus[gpu].has_adl = true;
 		/* Flag adl as active if any card is successfully activated */