projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb042a2
)
udev-acl: fix memleak
author
Bastien Nocera
<hadess@hadess.net>
Mon, 6 Jun 2011 16:50:13 +0000
(18:50 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 6 Jun 2011 16:50:13 +0000
(18:50 +0200)
extras/udev-acl/udev-acl.c
patch
|
blob
|
history
diff --git
a/extras/udev-acl/udev-acl.c
b/extras/udev-acl/udev-acl.c
index
35bad76
..
41e2536
100644
(file)
--- a/
extras/udev-acl/udev-acl.c
+++ b/
extras/udev-acl/udev-acl.c
@@
-288,8
+288,10
@@
static void apply_acl_to_devices(uid_t uid, int add)
if (device == NULL)
continue;
node = udev_device_get_devnode(device);
- if (node == NULL)
+ if (node == NULL) {
+ udev_device_unref(device);
continue;
+ }
set_facl(node, uid, add);
udev_device_unref(device);
}