]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix memory leak in test selector
authorAndrii Nakryiko <andriin@fb.com>
Wed, 29 Apr 2020 01:21:05 +0000 (18:21 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Apr 2020 02:48:05 +0000 (19:48 -0700)
commit779270374727172d95f90ac47ccd3c7e8e7c25a0
tree4ed8683754c2b827cc591fc1a2d1dd164f910c5d
parent40ea19aaddd97afe92727330722e279accf7a648
selftests/bpf: Fix memory leak in test selector

Free test selector substrings, which were strdup()'ed.

Fixes: 02dc7602a757 ("selftests/bpf: Add whitelist/blacklist of test names to test_progs")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200429012111.277390-6-andriin@fb.com
tools/testing/selftests/bpf/test_progs.c