kernel_optimize_test/tools/iio
Hartmut Knaack 121b5e505f tools:iio:iio_utils: fix allocation handling
In build_channel_array(), count needs to be decreased in more places since
current->name and current->generic_name would be freed on the error path,
although they have not been allocated, yet.
This also requires to free current->name, when it is allocated, but
current->generic_name is not yet allocated.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-05-31 17:22:56 +01:00
..
generic_buffer.c tools:iio: free channel-array completely 2015-05-31 17:20:16 +01:00
iio_event_monitor.c
iio_utils.c tools:iio:iio_utils: fix allocation handling 2015-05-31 17:22:56 +01:00
iio_utils.h
lsiio.c
Makefile iio: make tools more cross-compilation friendly 2015-05-10 20:31:45 +01:00