diff options
author | Yulong Zhang <yulong.zhang@metoak.net> | 2023-01-17 10:51:47 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-01-21 17:52:26 +0000 |
commit | f2edf0c819a4823cd6c288801ce737e8d4fcde06 (patch) | |
tree | bff4d3a189bc08c1f92e2ab1b23197f36a20b5c4 /drivers/iio/dac/Kconfig | |
parent | 05f59aba3906ff4c0a70e302711d81043f15114d (diff) |
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>
Diffstat (limited to 'drivers/iio/dac/Kconfig')
0 files changed, 0 insertions, 0 deletions