Explorar el Código

fixed double free on exit from non use

if cpu core parking/pinning was disabled by the logic then there would be a double free at exit
Henrik Holst hace 1 año
padre
commit
91eb57574c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      daemon/gamemode-cpu.c

+ 1 - 1
daemon/gamemode-cpu.c

@@ -433,7 +433,7 @@ void game_mode_apply_core_pinning(const GameModeCPUInfo *info, const pid_t clien
 
 void game_mode_free_cpu(GameModeCPUInfo **info)
 {
-	if (!(*info)) {
+	if ((*info)) {
 		CPU_FREE((*info)->online);
 		(*info)->online = NULL;