linux-stable/tools
Yang Jihong 2da5799fa0 perf tracepoint: Fix memory leak in is_valid_tracepoint()
[ Upstream commit 9b86c49710 ]

When is_valid_tracepoint() returns 1, need to call put_events_file() to
free `dir_path`.

Fixes: 25a7d91427 ("perf parse-events: Use get/put_events_file()")
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230421025953.173826-1-yangjihong1@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-17 13:58:54 +02:00
..
accounting tools/accounting/procacct: remove some unused variables 2022-11-18 13:55:09 -08:00
arch tools/x86/kcpuid: Fix avx512bw and avx512lvl fields in Fn00000007 2023-05-11 23:10:57 +09:00
bootconfig bootconfig: Fix testcase to increase max node 2023-03-30 12:50:57 +02:00
bpf bpftool: Fix bug for long instructions in program CFG dumps 2023-05-11 23:11:12 +09:00
build perf bpf: Fix build with libbpf 0.7.0 by checking if bpf_program__set_insns() is available 2022-10-25 17:40:48 -03:00
certs
cgroup
counter
debugging
edid
firewire
firmware
gpio tools: gpio: fix -c option of gpio-event-mon 2023-01-27 14:05:46 +01:00
hv
iio tools/iio/iio_utils:fix memory leak 2023-03-11 13:50:40 +01:00
include bpf: Add basic bpf_rb_{root,node} support 2023-05-11 23:11:11 +09:00
io_uring
kvm/kvm_stat tools/kvm_stat: update exit reasons for vmx/svm/aarch64/userspace 2022-11-09 12:26:52 -05:00
laptop
leds
lib libbpf: Fix ld_imm64 copy logic for ksym in light skeleton. 2023-05-11 23:11:09 +09:00
memory-model
objtool Revert "objtool: Support addition to set CFA base" 2023-05-11 23:11:25 +09:00
pci
pcmcia
perf perf tracepoint: Fix memory leak in is_valid_tracepoint() 2023-05-17 13:58:54 +02:00
power tools/power turbostat: fix decoding of HWP_STATUS 2023-04-06 12:12:30 +02:00
rcu
scripts
spi
testing selftests: netfilter: fix libmnl pkg-config usage 2023-05-17 13:58:47 +02:00
thermal
time
tracing tools/tracing/rtla: osnoise_hist: use total duration for average calculation 2023-03-10 09:28:43 +01:00
usb tools: usb: ffs-aio-example: Fix build error with aarch64-*-gnu-gcc toolchain(s) 2022-11-09 12:37:56 +01:00
verification rv: Fix addition on an uninitialized variable 'run' 2023-05-11 23:11:25 +09:00
virtio tools/virtio: fix the vringh test for virtio ring changes 2023-01-27 06:18:41 -05:00
vm tools/mm/page_owner_sort.c: fix TGID output when cull=tg is used 2023-04-26 14:30:04 +02:00
wmi
Makefile