mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-07 05:38:30 +02:00
Fix issues found by Coverity, closes #206.
This commit is contained in:
@@ -224,7 +224,8 @@ char *game_mode_resolve_wine_preloader(const char *exe, const pid_t pid)
|
||||
goto fail;
|
||||
|
||||
error_cleanup:
|
||||
game_mode_close_proc(proc_fd);
|
||||
if (proc_fd != INVALID_PROCFD)
|
||||
game_mode_close_proc(proc_fd);
|
||||
free(wineprefix);
|
||||
return wine_exe;
|
||||
|
||||
|
Reference in New Issue
Block a user