kernel_optimize_test/tools/perf/tests
Riccardo Mancini a2f0da3af6 perf test maps__merge_in: Fix memory leak of maps
[ Upstream commit 244d1797c8c8e850b8de7992af713aa5c70d5650 ]

ASan reports a memory leak when running:

  # perf test "65: maps__merge_in"

This is the second and final patch addressing these memory leaks.

This time, the problem is simply that the maps object is never
destructed.

This patch adds the missing maps__exit call.

Signed-off-by: Riccardo Mancini <rickyman7@gmail.com>
Fixes: 79b6bb73f8 ("perf maps: Merge 'struct maps' with 'struct map_groups'")
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.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/a1a29b97a58738987d150e94d4ebfad0282fb038.1626343282.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-28 14:35:35 +02:00
..
attr perf test: Leader sampling shouldn't clear sample period 2020-09-14 19:35:22 -03:00
shell perf test: Update branch sample pattern for cs-etm 2020-11-12 17:55:42 -03:00
.gitignore
api-io.c
attr.c perf tests: Call test_attr__open() directly 2020-09-10 11:55:37 -03:00
attr.py
backward-ring-buffer.c
bitmap.c
bp_account.c
bp_signal_overflow.c
bp_signal.c perf test: Fix the "signal" test inline assembly 2020-09-14 18:26:45 -03:00
bpf-script-example.c
bpf-script-test-kbuild.c
bpf-script-test-prologue.c
bpf-script-test-relocation.c
bpf.c perf test bpf: Free obj_buf 2021-07-25 14:36:21 +02:00
Build perf test: Add expand cgroup event test 2020-09-28 09:21:05 -03:00
builtin-test.c perf test: Add expand cgroup event test 2020-09-28 09:21:05 -03:00
clang.c
code-reading.c
cpumap.c
demangle-java-test.c
dso-data.c
dwarf-unwind.c perf tools: Remove broken __no_tail_call attribute 2020-11-03 08:32:15 -03:00
event_update.c perf test event_update: Fix memory leak of evlist 2021-07-28 14:35:35 +02:00
event-times.c
evsel-roundtrip-name.c
evsel-tp-sched.c
expand-cgroup.c perf test: Use generic event for expand_libpfm_events() 2020-12-30 11:53:01 +01:00
expr.c
fdarray.c
genelf.c
hists_common.c
hists_common.h
hists_cumulate.c
hists_filter.c
hists_link.c
hists_output.c
is_printable_array.c
keep-tracking.c
kmod-path.c
llvm.c
llvm.h
make perf tools: Add build test with GTK+ 2020-09-09 11:12:10 -03:00
maps.c perf test maps__merge_in: Fix memory leak of maps 2021-07-28 14:35:35 +02:00
mem.c
mem2node.c
mmap-basic.c
mmap-thread-lookup.c
openat-syscall-all-cpus.c
openat-syscall-tp-fields.c
openat-syscall.c
parse-events.c perf tools: Add support for exclusive groups/events 2020-10-14 12:24:28 -03:00
parse-metric.c perf test: Fix msan uninitialized use. 2020-09-28 09:24:01 -03:00
parse-no-sample-id-all.c
pe-file-parsing.c perf tools: Pass build_id object to filename__read_build_id() 2020-10-14 08:45:16 -03:00
pe-file.c perf tests: Add test for PE binary format support 2020-09-04 14:38:15 -03:00
pe-file.exe perf tests: Add test for PE binary format support 2020-09-04 14:38:15 -03:00
pe-file.exe.debug perf tests: Add test for PE binary format support 2020-09-04 14:38:15 -03:00
perf-hooks.c
perf-record.c
perf-targz-src-pkg
pfm.c
pmu-events.c perf test: Fix metric parsing test 2020-12-30 11:53:54 +01:00
pmu.c perf test: Free formats for perf pmu parse test 2020-09-15 09:22:42 -03:00
python-use.c perf tests: Show python test script in verbose mode 2020-10-13 16:22:03 -03:00
sample-parsing.c perf test: Fix unaligned access in sample parsing test 2021-03-04 11:38:10 +01:00
sdt.c perf tools: Pass build_id object to build_id__sprintf() 2020-10-14 08:46:22 -03:00
stat.c
sw-clock.c
switch-tracking.c
task-exit.c
tests.h perf test: Add expand cgroup event test 2020-09-28 09:21:05 -03:00
thread-map.c
thread-maps-share.c
time-utils-test.c
topology.c perf test session_topology: Delete session->evlist 2021-07-28 14:35:35 +02:00
unit_number__scnprintf.c
vmlinux-kallsyms.c
wp.c