29 lines
1004 B
Diff
29 lines
1004 B
Diff
From f4f6f2c7400b1a525d7c0c57b12f76f9dfdc4f0d Mon Sep 17 00:00:00 2001
|
|
From: Yu Watanabe <watanabe.yu+github@gmail.com>
|
|
Date: Sun, 13 Oct 2019 00:35:49 +0900
|
|
Subject: [PATCH] udev: fix memleak caused by wrong cleanup function
|
|
|
|
Fixes #13764.
|
|
Reference: https://github.com/systemd/systemd/commit/f4f6f2c7400b1a525d7c0c57b12f76f9dfdc4f0d
|
|
Conflict: NA
|
|
---
|
|
src/udev/udev-rules.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
|
|
index efea16e5c5..b09caeb7f9 100644
|
|
--- a/src/udev/udev-rules.c
|
|
+++ b/src/udev/udev-rules.c
|
|
@@ -2325,7 +2325,7 @@ static int apply_static_dev_perms(const char *devnode, uid_t uid, gid_t gid, mod
|
|
|
|
static int udev_rule_line_apply_static_dev_perms(UdevRuleLine *rule_line) {
|
|
UdevRuleToken *token;
|
|
- _cleanup_free_ char **tags = NULL;
|
|
+ _cleanup_strv_free_ char **tags = NULL;
|
|
uid_t uid = UID_INVALID;
|
|
gid_t gid = GID_INVALID;
|
|
mode_t mode = MODE_INVALID;
|
|
--
|
|
2.23.0
|
|
|