diff options
author | Xu Kuohai <[email protected]> | 2022-10-11 08:01:06 -0400 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2022-10-13 10:53:24 -0700 |
commit | 6d2e21dc4db3933db65293552ecc1ede26febeca (patch) | |
tree | 81782dcbb78352fe71e9a4a6cfb41d73a3952152 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 6e8280b958c5d7edc514cf347a800b23b7732b2b (diff) |
selftest/bpf: Fix memory leak in kprobe_multi_test
The get_syms() function in kprobe_multi_test.c does not free the string
memory allocated by sscanf correctly. Fix it.
Fixes: 5b6c7e5c4434 ("selftests/bpf: Add attach bench test")
Signed-off-by: Xu Kuohai <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions