From 61e741ed3df2a73f4ff138d276e58f8fb2439337 Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Mon, 25 Jan 2016 12:06:38 +0100 Subject: nspawn: fix memory leak --- src/nspawn/nspawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nspawn') diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index d619206dd6..b183e3aecc 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -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; -- cgit v1.2.3-54-g00ecf