perf script: Release zstd data
ASan reports several memory leak while running:
# perf test "82: Use vfs_getname probe to get syscall args filenames"
One of the leaks is caused by zstd data not being released on exit in
perf-script.
This patch adds the missing zstd_fini().
Signed-off-by: Riccardo Mancini <rickyman7@gmail.com>
Fixes: b13b04d938
("perf script: Initialize zstd_data")
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/39388e8cc2f85ca219ea18697a17b7bd8f74b693.1626343282.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
423b9174f5
commit
1b1f57cf9e
@ -4143,6 +4143,7 @@ out_delete:
|
||||
zfree(&script.ptime_range);
|
||||
}
|
||||
|
||||
zstd_fini(&(session->zstd_data));
|
||||
evlist__free_stats(session->evlist);
|
||||
perf_session__delete(session);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user