From b3f9c17a6b361bf98e79a0228cdcb09afc40d1cc Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 11 Feb 2021 05:48:10 +0900 Subject: tree-wide: use free_and_strdup_warn() --- src/nspawn/nspawn-settings.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nspawn') 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( -- cgit v1.2.3