WSL2-Linux-Kernel/tools/lib/perf
Ian Rogers 4599d29212 libperf evlist: Fix a refcount leak
Memory leaks found by applying LLVM's libfuzzer on the tools/perf
parse_events function.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: clang-built-linux@googlegroups.com
Link: http://lore.kernel.org/lkml/20200319023101.82458-2-irogers@google.com
[ Did a minor adjustment due to some other previous patch having already set evlist->all_cpus to NULL at perf_evlist__exit() ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2020-05-05 16:35:29 -03:00
..
Documentation libperf: Add counting example 2020-03-04 10:34:10 -03:00
include perf tools: Basic support for CGROUP event 2020-04-03 09:37:55 -03:00
tests libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
Build libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
Makefile libperf: Add man pages 2020-01-06 11:46:09 -03:00
core.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
cpumap.c libperf: Add NULL pointer check for cpu_map iteration and NULL assignment for all_cpus. 2020-05-05 16:35:29 -03:00
evlist.c libperf evlist: Fix a refcount leak 2020-05-05 16:35:29 -03:00
evsel.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
internal.h libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
lib.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
libperf.map libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
libperf.pc.template libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
mmap.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
threadmap.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
xyarray.c libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00