mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
parse_events() may succeed but leave string memory allocations reachable in the error. Add an init/exit that must be called to initialize and clean up the error. This fixes a leak in metricgroup parse_ids. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: John Garry <john.garry@huawei.com> 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> Link: http://lore.kernel.org/lkml/20211107090002.3784612-2-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> |
||
|---|---|---|
| .. | ||
| book3s_hcalls.h | ||
| book3s_hv_exits.h | ||
| Build | ||
| dwarf-regs.c | ||
| event.c | ||
| evsel.c | ||
| header.c | ||
| kvm-stat.c | ||
| machine.c | ||
| mem-events.c | ||
| perf_regs.c | ||
| skip-callchain-idx.c | ||
| sym-handling.c | ||
| unwind-libdw.c | ||
| unwind-libunwind.c | ||
| utils_header.h | ||