WSL2-Linux-Kernel/tools/iio
Yulong Zhang 9e58ebb122 tools/iio/iio_utils:fix memory leak
[ Upstream commit f2edf0c819 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 13:57:34 +01:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Build tools: iio: Correctly add make dependency for iio_utils 2019-11-10 17:11:06 +00:00
Makefile tools: iio: convert iio_generic_buffer to use new IIO buffer API 2021-03-11 20:47:07 +00:00
iio_event_monitor.c iio: event_monitor: Enable events before monitoring 2021-03-25 19:13:52 +00:00
iio_generic_buffer.c tools: iio: iio_generic_buffer: Fix read size 2022-12-02 17:41:10 +01:00
iio_utils.c tools/iio/iio_utils:fix memory leak 2023-03-11 13:57:34 +01:00
iio_utils.h iio: event_monitor: Enable events before monitoring 2021-03-25 19:13:52 +00:00
lsiio.c