Commit 751fd484 authored by Chris Michael's avatar Chris Michael Committed by Carsten Haitzler (Rasterman)

eeze: Don't leak udev enumeration

If we cannot create a new udev device, then we should free the
previously created udev enumeration from above.

@fix
Signed-off-by: default avatarChris Michael <cp.michael@samsung.com>
parent 5d4dc630
......@@ -28,7 +28,10 @@ eeze_udev_find_similar_from_syspath(const char *syspath)
return NULL;
if (!(device = _new_device(syspath)))
return NULL;
{
udev_enumerate_unref(en);
return NULL;
}
vendor = udev_device_get_property_value(device, "ID_VENDOR_ID");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment