diff options
| author | Yicong Yang <[email protected]> | 2023-12-07 08:16:35 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-12-13 16:56:09 +0000 |
| commit | 1bc479d665bc25a9a4e8168d5b400a47491511f9 (patch) | |
| tree | 97aa23295313c9f6e8e93344484b15a378f3c654 /tools/perf/scripts/python/netdev-times.py | |
| parent | perf header: Fix one memory leakage in perf_event__fprintf_event_update() (diff) | |
| download | kernel-1bc479d665bc25a9a4e8168d5b400a47491511f9.tar.gz kernel-1bc479d665bc25a9a4e8168d5b400a47491511f9.zip | |
perf hisi-ptt: Fix one memory leakage in hisi_ptt_process_auxtrace_event()
ASan complains a memory leakage in hisi_ptt_process_auxtrace_event()
that the data buffer is not freed. Since currently we only support the
raw dump trace mode, the data buffer is used only within this function.
So fix this by freeing the data buffer before going out.
Fixes: 5e91e57e68090c0e ("perf auxtrace arm64: Add support for parsing HiSilicon PCIe Trace packet")
Reviewed-by: Ian Rogers <[email protected]>
Signed-off-by: Yicong Yang <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Cc: Junhao He <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Qi Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
