chiark / gitweb /
rules: do not preprocess 80-drivers.rules + 75-probe_mtd.rules
[elogind.git] / extras / udev-acl / udev-acl.c
index 35bad76034972e23ff0e6295891b7b2e5518cdc4..41e2536e037da002490cc15eaf331dbdbaa5a65d 100644 (file)
@@ -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);
        }