Riccardo Mancini
f9d0c35556
perf inject: Close inject.output on exit
...
commit 02e6246f5364d5260a6ea6f92ab6f409058b162f upstream.
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 <rickyman7@gmail.com>
Fixes: 6ef81c55a2 ("perf session: Return error code for perf_session__new() function on failure")
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mamatha Inamdar <mamatha4@linux.vnet.ibm.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/c06f682afa964687367cf6e92a64ceb49aec76a5.1626343282.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-28 13:31:02 +02:00
..
arch
perf tools: Fix record failure when mixed with ARM SPE event
2020-08-05 09:59:49 +02:00
bench
perf bench: Fix 2 memory sanitizer warnings
2021-07-19 08:53:14 +02:00
Documentation
perf record/stat: Explicitly call out event modifiers in the documentation
2020-09-05 11:22:49 +02:00
examples /bpf
include /bpf
jvmti
lib
pmu-events
perf jevents: Fix getting maximum number of fds
2021-06-03 08:59:08 +02:00
python
tweewide: Fix most Shebang lines
2021-05-22 11:38:30 +02:00
scripts
perf scripts python: exported-sql-viewer.py: Fix warning display
2021-06-03 08:59:00 +02:00
tests
perf test event_update: Fix memory leak of evlist
2021-07-28 13:30:54 +02:00
trace
perf beauty: Fix fsconfig generator
2021-05-14 09:44:30 +02:00
ui
perf report TUI: Fix segmentation fault in perf_evsel__hists_browse()
2020-07-16 08:16:38 +02:00
util
perf data: Close all files in close_dir()
2021-07-28 13:30:54 +02:00
.gitignore
Build
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c
builtin-config.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c
perf ftrace: Fix access to pid in array when setting a pid filter
2021-05-07 10:51:37 +02:00
builtin-help.c
builtin-inject.c
perf inject: Close inject.output on exit
2021-07-28 13:31:02 +02:00
builtin-kallsyms.c
builtin-kmem.c
builtin-kvm.c
builtin-list.c
builtin-lock.c
perf lock: Don't free "lock_seq_stat" if read_count isn't zero
2020-11-24 13:29:05 +01:00
builtin-mem.c
builtin-probe.c
perf probe: Do not show the skipped events
2020-06-22 09:31:27 +02:00
builtin-record.c
perf record: Correct the help info of option "--no-bpf-event"
2020-09-09 19:12:36 +02:00
builtin-report.c
perf report: Fix NULL pointer dereference in hists__fprintf_nr_sample_events()
2020-06-24 17:50:45 +02:00
builtin-sched.c
builtin-script.c
perf script: Fix memory 'threads' and 'cpus' leaks on exit
2021-07-28 13:30:54 +02:00
builtin-stat.c
perf stat: Skip duration_time in setup_system_wide
2020-10-29 09:57:50 +01:00
builtin-timechart.c
builtin-top.c
perf top: Fix stdio interface input handling with glibc 2.28+
2020-10-14 10:32:59 +02:00
builtin-trace.c
perf trace: Fix segfault when trying to trace events by cgroup
2020-11-18 19:20:18 +01:00
builtin-version.c
builtin.h
check-headers.sh
command-list.txt
CREDITS
design.txt
Makefile
tools: Let O= makes handle a relative path with -C option
2020-04-01 11:02:00 +02:00
Makefile.config
perf tools: Support Python 3.8+ in Makefile
2020-04-17 10:50:21 +02:00
Makefile.perf
tools: Factor HOSTCC, HOSTLD, HOSTAR definitions
2021-01-30 13:54:10 +01:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h
perf-with-kcore.sh
perf.c
perf.h