diff options
author | 2024-09-24 12:55:34 +0800 | |
---|---|---|
committer | 2024-10-03 17:47:35 -0700 | |
commit | a1ec23b947538520b3182c598dc2bb9930d032b1 (patch) | |
tree | 1afd9a1bf4c9f0b135860ce2beae9816fe1bf5e1 /tools | |
parent | bpf: Constify struct btf_kind_operations (diff) | |
download | wireguard-linux-a1ec23b947538520b3182c598dc2bb9930d032b1.tar.xz wireguard-linux-a1ec23b947538520b3182c598dc2bb9930d032b1.zip |
selftests/bpf: Add missing va_end.
There is no va_end after va_copy, just add it.
Signed-off-by: Zhang Jiao <zhangjiao2@cmss.chinamobile.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240924045534.8672-1-zhangjiao2@cmss.chinamobile.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/bpf/test_progs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/test_progs.c b/tools/testing/selftests/bpf/test_progs.c index c7a70e1a1085..7846f7f98908 100644 --- a/tools/testing/selftests/bpf/test_progs.c +++ b/tools/testing/selftests/bpf/test_progs.c @@ -868,6 +868,7 @@ static int libbpf_print_fn(enum libbpf_print_level level, va_copy(args2, args); vfprintf(libbpf_capture_stream, format, args2); + va_end(args2); } if (env.verbosity < VERBOSE_VERY && level == LIBBPF_DEBUG) |