perf bpf: Fix memory leaks relating to BTF.
authorIan Rogers <irogers@google.com>
Thu, 26 Aug 2021 18:48:33 +0000 (11:48 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 31 Aug 2021 18:12:00 +0000 (15:12 -0300)
commit298105b78b0ede160c2b94293b86d4ba4e936ad5
tree8878e79d96963835d9d4385f55d46bd67b6bd1c4
parent760f5e77e662e0141bd46ade28d72fc884ca64d9
perf bpf: Fix memory leaks relating to BTF.

BTF needs to be freed with btf__free().

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Kajol Jain <kjain@linux.ibm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.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>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20210826184833.408563-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/bpf-event.c