mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-02 11:26:55 +02:00
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
This commit is contained in:

committed by
afayaz-feral

parent
25a99af4a1
commit
91eb57574c
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user