mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00
Close the openned task dirs to prevent a leak
This commit is contained in:
parent
41d35fa12a
commit
f401b49b1a
@ -188,4 +188,6 @@ void game_mode_apply_ioprio(const GameModeContext *self, const pid_t client, int
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
closedir(client_task_dir);
|
||||
}
|
||||
|
@ -148,6 +148,8 @@ void game_mode_apply_renice(const GameModeContext *self, const pid_t client, int
|
||||
strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
closedir(client_task_dir);
|
||||
}
|
||||
|
||||
void game_mode_apply_scheduling(const GameModeContext *self, const pid_t client)
|
||||
|
Loading…
x
Reference in New Issue
Block a user