config: fix memory leak config_home_fallback
This commit is contained in:
parent
efcbcb60aa
commit
c60b2b6ca8
|
@ -131,12 +131,14 @@ static char *get_config_path(void) {
|
||||||
}
|
}
|
||||||
logprint(TRACE, "config: trying config file %s", path);
|
logprint(TRACE, "config: trying config file %s", path);
|
||||||
if (file_exists(path)) {
|
if (file_exists(path)) {
|
||||||
|
free(config_home_fallback);
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
free(path);
|
free(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(config_home_fallback);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue