diff options
author | Bastien Nocera <hadess@hadess.net> | 2011-06-06 18:50:13 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-06-06 18:50:13 +0200 |
commit | ac5c41ab70b1975d880ba86ece6f49bbc6bac44a (patch) | |
tree | 108e29c88678a4e93339be20805df150dad662b3 /extras | |
parent | eb042a2c92fb857294e1380ff232a7633a2d3725 (diff) |
udev-acl: fix memleak
Diffstat (limited to 'extras')
-rw-r--r-- | extras/udev-acl/udev-acl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/udev-acl/udev-acl.c b/extras/udev-acl/udev-acl.c index 35bad76034..41e2536e03 100644 --- 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); } |