]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/install: use correct cleanup function
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 2 May 2022 16:09:21 +0000 (01:09 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 2 May 2022 21:17:56 +0000 (22:17 +0100)
Fixes #23250.

src/shared/install.c

index f7257c5ceb87163d7a2d6c803548c7ea68e8cdd6..5df2137d4c66dfe9432167216b365f7f6842a6ea 100644 (file)
@@ -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) {