config: fix memory leak config_home_fallback

This commit is contained in:
columbarius 2021-04-23 01:02:55 +02:00
parent efcbcb60aa
commit c60b2b6ca8

View file

@ -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;
}