mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-23 01:59:49 +01:00
config: fix memory leak config_home_fallback
This commit is contained in:
parent
efcbcb60aa
commit
c60b2b6ca8
1 changed files with 2 additions and 0 deletions
|
@ -131,12 +131,14 @@ static char *get_config_path(void) {
|
|||
}
|
||||
logprint(TRACE, "config: trying config file %s", path);
|
||||
if (file_exists(path)) {
|
||||
free(config_home_fallback);
|
||||
return path;
|
||||
}
|
||||
free(path);
|
||||
}
|
||||
}
|
||||
|
||||
free(config_home_fallback);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue