vmspawn: fix duplicate logging on oom

This commit is contained in:
Lennart Poettering
2024-08-27 12:37:56 +02:00
committed by Yu Watanabe
parent 88261bcf3b
commit 4e7a627797

View File

@@ -59,7 +59,7 @@ int runtime_mount_parse(RuntimeMountContext *ctx, const char *s, bool read_only)
return -EINVAL;
if (!GREEDY_REALLOC(ctx->mounts, ctx->n_mounts + 1))
return log_oom();
return -ENOMEM;
ctx->mounts[ctx->n_mounts++] = TAKE_STRUCT(mount);