Close the openned task dirs to prevent a leak

This commit is contained in:
Marc Di Luzio 2019-05-15 18:20:36 +01:00
parent 41d35fa12a
commit f401b49b1a
2 changed files with 4 additions and 0 deletions

View File

@ -188,4 +188,6 @@ void game_mode_apply_ioprio(const GameModeContext *self, const pid_t client, int
}
}
}
closedir(client_task_dir);
}

View File

@ -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)