alistair23-linux/tools/iio
Joo Aun Saw 6b20f40679 tools: iio: Set caller's ci_array pointer to NULL after free
On error, caller's ci_array is freed and set to NULL to avoid
potential double free if some other user of this code is not
sufficiently careful. Counter is reset to zero for consistency.

Signed-off-by: Joo Aun Saw <jasaw@dius.com.au>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-08-08 19:51:39 +01:00
..
generic_buffer.c tools: iio: print error message when buffer enable fails 2015-08-02 18:39:27 +01:00
iio_event_monitor.c tools: iio: Send error messages to stderr 2015-07-20 18:41:24 +01:00
iio_utils.c tools: iio: Set caller's ci_array pointer to NULL after free 2015-08-08 19:51:39 +01:00
iio_utils.h tools: iio: Add ARRAY_SIZE macro 2015-07-20 18:41:23 +01:00
lsiio.c tools: iio: Send error messages to stderr 2015-07-20 18:41:24 +01:00
Makefile iio: make tools more cross-compilation friendly 2015-05-10 20:31:45 +01:00