diff --git a/src/core/execute.c b/src/core/execute.c index bebd4eca80..0d6656d503 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2258,10 +2258,8 @@ static int compile_bind_mounts( } r = strv_consume(&empty_directories, private_root); - if (r < 0) { - r = -ENOMEM; + if (r < 0) goto finish; - } } STRV_FOREACH(suffix, context->directories[t].paths) {