tools:iio:generic_buffer: free dev_dir_name on exit
authorHartmut Knaack <knaack.h@gmx.de>
Sun, 31 May 2015 12:39:42 +0000 (14:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2015 16:14:37 +0000 (17:14 +0100)
commitd3ccfc41f971105404694e8478b5e60625e46967
treeab6cce091c5369e423210fb67134151f4dce5c26
parenta71bfb4a6aabfe5e6f145883020153103c7fdfba
tools:iio:generic_buffer: free dev_dir_name on exit

Make sure to free dev_dir_name in case of an error or regular exit.

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