systemd/0206-shared-install-use-correct-cleanup-function.patch
Jan Macku 0daf48d9aa systemd-250-8
Resolves: #2047682,#2068043,#2068131,#2073003,#2073994,#2082131,#2083493,#2087652,#2100340
2022-07-20 08:37:23 +02:00

28 lines
984 B
Diff

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) {