tools:iio:lsiio: add closedir before exit
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:39:47 +0000 (14:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2015 16:30:29 +0000 (17:30 +0100)
commitf96d055e4b38c64123f211f0521f834d649cd01c
tree19156f7b90c46d5a96e1edc3c665888b9d170986
parent121b5e505fe86ea52603c946865d658a5fe8130b
tools:iio:lsiio: add closedir before exit

In dump_channels() the DIR *dp was left open on exit. Close it and check
for errors.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/lsiio.c