summaryrefslogtreecommitdiffstats
path: root/src/nspawn
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-02-10 21:48:10 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-11 19:05:08 +0100
commitb3f9c17a6b361bf98e79a0228cdcb09afc40d1cc (patch)
tree1c607970840370d1588f41eb5e6387a240e08661 /src/nspawn
parenttree-wide: propagate error in xxx_from-string() (diff)
downloadsystemd-b3f9c17a6b361bf98e79a0228cdcb09afc40d1cc.tar.xz
systemd-b3f9c17a6b361bf98e79a0228cdcb09afc40d1cc.zip
tree-wide: use free_and_strdup_warn()
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn-settings.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nspawn/nspawn-settings.c b/src/nspawn/nspawn-settings.c
index b43d61468e..74a00c5275 100644
--- a/src/nspawn/nspawn-settings.c
+++ b/src/nspawn/nspawn-settings.c
@@ -706,10 +706,7 @@ int config_parse_hostname(
return 0;
}
- if (free_and_strdup(s, empty_to_null(rvalue)) < 0)
- return log_oom();
-
- return 0;
+ return free_and_strdup_warn(s, empty_to_null(rvalue));
}
int config_parse_oom_score_adjust(