Remove unused device variables and fix a leak 48/164748/1
authorMyoungwoon Roy, Kim <myoungwoon.kim@samsung.com>
Thu, 21 Dec 2017 00:02:07 +0000 (09:02 +0900)
committerMyoungwoon Roy, Kim <myoungwoon.kim@samsung.com>
Thu, 21 Dec 2017 00:02:41 +0000 (09:02 +0900)
commitfcd16883df6fd46cd9fde98430b7f758e8803540
tree7a2fa2d8c27fc7ef296a1f24193443837da25adc
parentd4205845d13dc7dad2be439833557be77d0de6bd
Remove unused device variables and fix a leak

As we do not ever used the udev_devices created from
udev_device_new_from_syspath in these functions, remove them.

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

Change-Id: Ia9eaf5b3fa22bc17d685293ceb5ade8ebf6c5401
src/lib/eeze/eeze_udev_find.c