nspawn: fix memory leak

This commit is contained in:
Michal Sekletar 2016-01-25 12:06:38 +01:00
parent ce262e5760
commit 61e741ed3d
1 changed files with 1 additions and 1 deletions

View File

@ -1027,7 +1027,7 @@ static int setup_timezone(const char *dest) {
}
check = strjoina("/usr/share/zoneinfo/", z);
check = prefix_root(dest, check);
check = prefix_roota(dest, check);
if (laccess(check, F_OK) < 0) {
log_warning("Timezone %s does not exist in container, not updating container timezone.", z);
return 0;