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)
commitf25d5416d64c796aa639136eb0b076c8bd579b54
tree4ed8683754c2b827cc591fc1a2d1dd164f910c5d
parent229bf8bf4d910510bc1a2fd0b89bd467cd71050d
selftests/bpf: Fix memory leak in test selector

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

Fixes: b65053cd94f4 ("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