summaryrefslogtreecommitdiff
path: root/src/lib/eeze/eeze_udev_find.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eeze/eeze_udev_find.c')
-rw-r--r--src/lib/eeze/eeze_udev_find.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eeze/eeze_udev_find.c b/src/lib/eeze/eeze_udev_find.c
index b96e5f33b9..35cdbe83c5 100644
--- a/src/lib/eeze/eeze_udev_find.c
+++ b/src/lib/eeze/eeze_udev_find.c
@@ -28,7 +28,10 @@ eeze_udev_find_similar_from_syspath(const char *syspath)
28 return NULL; 28 return NULL;
29 29
30 if (!(device = _new_device(syspath))) 30 if (!(device = _new_device(syspath)))
31 return NULL; 31 {
32 udev_enumerate_unref(en);
33 return NULL;
34 }
32 35
33 vendor = udev_device_get_property_value(device, "ID_VENDOR_ID"); 36 vendor = udev_device_get_property_value(device, "ID_VENDOR_ID");
34 37