udev: don't forget to unref devices we are not interested in

https://bugzilla.redhat.com/show_bug.cgi?id=552932
This commit is contained in:
Lennart Poettering 2010-01-12 23:01:24 +01:00
parent 78811c5653
commit 15a3018bda

View file

@ -416,8 +416,10 @@ static void monitor_cb(
goto fail;
}
if (!path_get_card_id(udev_device_get_devpath(dev)))
if (!path_get_card_id(udev_device_get_devpath(dev))) {
udev_device_unref(dev);
return;
}
process_device(u, dev);
udev_device_unref(dev);