teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0206-shared-install-use-correct-cleanup-function.patch

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