diff options
author | Yulong Zhang <[email protected]> | 2023-01-17 10:51:47 +0800 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2023-01-21 17:52:26 +0000 |
commit | f2edf0c819a4823cd6c288801ce737e8d4fcde06 (patch) | |
tree | bff4d3a189bc08c1f92e2ab1b23197f36a20b5c4 /tools/perf/scripts/python/exported-sql-viewer.py | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions