summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/Makefile
diff options
context:
space:
mode:
authorQuentin Monnet <quentin@isovalent.com>2021-11-10 14:46:27 +0300
committerAndrii Nakryiko <andrii@kernel.org>2021-11-15 05:34:08 +0300
commitebbd7f64a3fbe9e0f235e39fc244ee9735e2a52a (patch)
tree7fba64ecd8cbaa7e268e53524433373ccd910197 /tools/bpf/bpftool/Makefile
parent325d956d67178af92b5b12ff950a2f93a433f2c4 (diff)
downloadlinux-ebbd7f64a3fbe9e0f235e39fc244ee9735e2a52a.tar.xz
bpftool: Fix memory leak in prog_dump()
Following the extraction of prog_dump() from do_dump(), the struct btf allocated in prog_dump() is no longer freed on error; the struct bpf_prog_linfo is not freed at all. Make sure we release them before exiting the function. Fixes: ec2025095cf6 ("bpftool: Match several programs with same tag") Signed-off-by: Quentin Monnet <quentin@isovalent.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20211110114632.24537-2-quentin@isovalent.com
Diffstat (limited to 'tools/bpf/bpftool/Makefile')
0 files changed, 0 insertions, 0 deletions