Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
- Loading branch information