From: Yu Watanabe Date: Mon, 2 May 2022 16:09:21 +0000 (+0900) Subject: shared/install: use correct cleanup function X-Git-Tag: v251-rc2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b6bf4b674a63e9951dcffbd0b95de7377038690;p=thirdparty%2Fsystemd.git shared/install: use correct cleanup function Fixes #23250. --- diff --git a/src/shared/install.c b/src/shared/install.c index f7257c5ceb8..5df2137d4c6 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -2799,7 +2799,7 @@ static int normalize_linked_files( * but operates on real unit names. For each argument we we look up the actual path * where the unit is found. This way linked units can be re-enabled successfully. */ - _cleanup_free_ char **files = NULL, **names = NULL; + _cleanup_strv_free_ char **files = NULL, **names = NULL; int r; STRV_FOREACH(a, names_or_paths) {