mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 16:17:23 +02:00
Fix potential memory leak in game_mode_initialise_gpu
This commit is contained in:
parent
23dd471f6b
commit
9db7442a31
@ -84,6 +84,7 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
new_info->vendor = gamemode_get_gpu_vendor(new_info->device);
|
new_info->vendor = gamemode_get_gpu_vendor(new_info->device);
|
||||||
if (!GPUVendorValid(new_info->vendor)) {
|
if (!GPUVendorValid(new_info->vendor)) {
|
||||||
LOG_ERROR("Found invalid vendor, will not apply optimisations!\n");
|
LOG_ERROR("Found invalid vendor, will not apply optimisations!\n");
|
||||||
|
free(new_info);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user