diff options
| author | Riccardo Mancini <[email protected]> | 2021-07-15 16:07:16 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-07-15 20:27:52 +0000 |
| commit | 423b9174f5f71fd3d245f4da0feaf958976f66e7 (patch) | |
| tree | 7be9b74703b1ebbd850a008dc91b6e6f486beb1b /tools/perf/builtin-script.c | |
| parent | perf inject: Close inject.output on exit (diff) | |
| download | kernel-423b9174f5f71fd3d245f4da0feaf958976f66e7.tar.gz kernel-423b9174f5f71fd3d245f4da0feaf958976f66e7.zip | |
perf session: Cleanup trace_event
ASan reports several memory leaks when running:
# perf test "82: Use vfs_getname probe to get syscall args filenames"
many of which are related to session->tevent.
This patch will solve this problem, then next patch will fix the
remaining memory leaks in 'perf script'.
This bug is due to a missing deallocation of the trace_event data
strutures.
This patch adds the missing trace_event__cleanup() in
perf_session__delete().
Signed-off-by: Riccardo Mancini <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/fa2a3f221d90e47ce4e5b7e2d6e64c3509ddc96a.1626343282.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
