tools:iio:iio_utils: free scan_el_dir on exit
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:39:43 +0000 (14:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2015 16:19:12 +0000 (17:19 +0100)
commit66dd08fde06e5ad6f0f86c7a780d60973e9d9cf0
tree5ed7619e6e51be344481a6794f26ea59520aac83
parentd3ccfc41f971105404694e8478b5e60625e46967
tools:iio:iio_utils: free scan_el_dir on exit

In the error path, the string scan_el_dir got freed, while it was missing when
build_channel_array() finished without errors.

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