udevadm-test-builtin: use find_device()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 22 Oct 2018 04:47:06 +0000 (13:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Oct 2018 09:28:38 +0000 (18:28 +0900)
commit45a73f4be32481eacdb652c0869d69025fab354c
treed0f1f4caa571081fbcdca1cfd7e4d740a1757a0a
parentb753e14ac8e1cf512b5ee6428a04a4e6cd1b9844
udevadm-test-builtin: use find_device()

This also fixes minor memleak.
src/udev/udevadm-test-builtin.c