WSL2-Linux-Kernel/tools/iio
Yulong Zhang f2edf0c819 tools/iio/iio_utils:fix memory leak
1. fopen sysfs without fclose.
2. asprintf filename without free.
3. if asprintf return error,do not need to free the buffer.

Signed-off-by: Yulong Zhang <yulong.zhang@metoak.net>
Link: https://lore.kernel.org/r/20230117025147.69890-1-yulong.zhang@metoak.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-01-21 17:52:26 +00:00
..
.gitignore
Build
Makefile
iio_event_monitor.c
iio_generic_buffer.c
iio_utils.c tools/iio/iio_utils:fix memory leak 2023-01-21 17:52:26 +00:00
iio_utils.h
lsiio.c