8d419f
From dc7ddca892c329ef24b7e9098134f5cae50e09a0 Mon Sep 17 00:00:00 2001
8d419f
From: Yu Watanabe <watanabe.yu+github@gmail.com>
8d419f
Date: Tue, 3 May 2022 01:09:21 +0900
8d419f
Subject: [PATCH] shared/install: use correct cleanup function
8d419f
8d419f
Fixes #23250.
8d419f
8d419f
(cherry picked from commit 0b6bf4b674a63e9951dcffbd0b95de7377038690)
8d419f
8d419f
Related: #2082131
8d419f
---
8d419f
 src/shared/install.c | 2 +-
8d419f
 1 file changed, 1 insertion(+), 1 deletion(-)
8d419f
8d419f
diff --git a/src/shared/install.c b/src/shared/install.c
8d419f
index fa7bbdd93a..96d64d32bb 100644
8d419f
--- a/src/shared/install.c
8d419f
+++ b/src/shared/install.c
8d419f
@@ -2804,7 +2804,7 @@ static int normalize_linked_files(
8d419f
          * but operates on real unit names. For each argument we we look up the actual path
8d419f
          * where the unit is found. This way linked units can be reenabled successfully. */
8d419f
 
8d419f
-        _cleanup_free_ char **files = NULL, **names = NULL;
8d419f
+        _cleanup_strv_free_ char **files = NULL, **names = NULL;
8d419f
         int r;
8d419f
 
8d419f
         STRV_FOREACH(a, names_or_paths) {