devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=5f7d942253afadb6e0623fe6561fc03f000bc1ea
commit 5f7d942253afadb6e0623fe6561fc03f000bc1ea Author: Chris Michael <[email protected]> Date: Thu Dec 14 07:31:39 2017 -0500 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: Chris Michael <[email protected]> --- src/lib/eeze/eeze_udev_find.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) 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"); --
