You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
984 B

From dc7ddca892c329ef24b7e9098134f5cae50e09a0 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Tue, 3 May 2022 01:09:21 +0900
Subject: [PATCH] shared/install: use correct cleanup function
Fixes #23250.
(cherry picked from commit 0b6bf4b674a63e9951dcffbd0b95de7377038690)
Related: #2082131
---
src/shared/install.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shared/install.c b/src/shared/install.c
index fa7bbdd93a..96d64d32bb 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -2804,7 +2804,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 reenabled successfully. */
- _cleanup_free_ char **files = NULL, **names = NULL;
+ _cleanup_strv_free_ char **files = NULL, **names = NULL;
int r;
STRV_FOREACH(a, names_or_paths) {