summaryrefslogtreecommitdiffstats
path: root/src/modules/module-udev-detect.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-12 23:01:24 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-12 23:01:24 +0100
commit15a3018bda8ee92393671ceaf272be418e95a81f (patch)
tree26a5a9bbd337f752b6c343050f79369579df4af6 /src/modules/module-udev-detect.c
parent78811c5653d0ba508b6558ba4578b61da26c60cf (diff)
udev: don't forget to unref devices we are not interested in
https://bugzilla.redhat.com/show_bug.cgi?id=552932
Diffstat (limited to 'src/modules/module-udev-detect.c')
-rw-r--r--src/modules/module-udev-detect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/module-udev-detect.c b/src/modules/module-udev-detect.c
index 1b1e9c1a..7508d9a7 100644
--- a/src/modules/module-udev-detect.c
+++ b/src/modules/module-udev-detect.c
@@ -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);