diff options
author | Riccardo Mancini <rickyman7@gmail.com> | 2021-07-15 18:07:13 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-07-15 22:27:52 +0200 |
commit | da6b7c6c0626901428245f65712385805e42eba6 (patch) | |
tree | b2276ccc890762f63ff5823f61df4a7101e3942c /tools/objtool/elf.c | |
parent | perf test maps__merge_in: Fix memory leak of maps (diff) | |
download | linux-da6b7c6c0626901428245f65712385805e42eba6.tar.xz linux-da6b7c6c0626901428245f65712385805e42eba6.zip |
perf env: Fix memory leak of cpu_pmu_caps
ASan reports memory leaks while running:
# perf test "83: Zstd perf.data compression/decompression"
The first of the leaks is caused by env->cpu_pmu_caps not being freed.
This patch adds the missing (z)free inside perf_env__exit.
Signed-off-by: Riccardo Mancini <rickyman7@gmail.com>
Fixes: 6f91ea283a1ed23e ("perf header: Support CPU PMU capabilities")
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/6ba036a8220156ec1f3d6be3e5d25920f6145028.1626343282.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/objtool/elf.c')
0 files changed, 0 insertions, 0 deletions