kernel-fxtec-pro1x/tools/testing
Andrii Nakryiko 3cea36c903 selftests/bpf: Fix memory leak in extract_build_id()
[ Upstream commit 9f56bb531a809ecaa7f0ddca61d2cf3adc1cb81a ]

getline() allocates string, which has to be freed.

Fixes: 81f77fd0de ("bpf: add selftest for stackmap with BPF_F_STACK_BUILD_ID")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200429012111.277390-7-andriin@fb.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-22 09:05:14 +02:00
..
fault-injection
ktest ktest: Add timeout for ssh sync testing 2020-03-18 07:14:20 +01:00
nvdimm libnvdimm/nfit_test: Fix acpi_handle redefinition 2019-10-11 18:21:21 +02:00
radix-tree idr: Fix idr_get_next race with idr_remove 2019-11-24 08:19:11 +01:00
scatterlist
selftests selftests/bpf: Fix memory leak in extract_build_id() 2020-06-22 09:05:14 +02:00
vsock