projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
349176a
)
udev: fix memleak caused by wrong cleanup function
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 12 Oct 2019 15:35:49 +0000
(
00:35
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 12 Oct 2019 15:35:53 +0000
(
00:35
+0900)
Fixes #13764.
src/udev/udev-rules.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-rules.c
b/src/udev/udev-rules.c
index efea16e5c5acd4dddd68accb33298626b3cf26e6..b09caeb7f9a6c8d7cae6d981181c2b41cc2253e4 100644
(file)
--- 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;