diff options
| author | Riccardo Mancini <[email protected]> | 2021-07-15 16:07:15 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-07-15 20:27:52 +0000 |
| commit | 02e6246f5364d5260a6ea6f92ab6f409058b162f (patch) | |
| tree | 9e10e9c677f6c0a3119cb006239257adfa13a62b /tools/perf/builtin-script.c | |
| parent | perf report: Free generated help strings for sort option (diff) | |
| download | kernel-02e6246f5364d5260a6ea6f92ab6f409058b162f.tar.gz kernel-02e6246f5364d5260a6ea6f92ab6f409058b162f.zip | |
perf inject: Close inject.output on exit
ASan reports a memory leak when running:
# perf test "83: Zstd perf.data compression/decompression"
which happens inside 'perf inject'.
The bug is caused by inject.output never being closed.
This patch adds the missing perf_data__close().
Signed-off-by: Riccardo Mancini <[email protected]>
Fixes: 6ef81c55a2b6584c ("perf session: Return error code for perf_session__new() function on failure")
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mamatha Inamdar <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/c06f682afa964687367cf6e92a64ceb49aec76a5.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
