aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorQuentin Monnet <[email protected]>2021-11-10 11:46:27 +0000
committerAndrii Nakryiko <[email protected]>2021-11-15 02:34:08 +0000
commitebbd7f64a3fbe9e0f235e39fc244ee9735e2a52a (patch)
tree7fba64ecd8cbaa7e268e53524433373ccd910197 /net/unix/af_unix.c
parentselftests/bpf: Fix a tautological-constant-out-of-range-compare compiler warning (diff)
downloadkernel-ebbd7f64a3fbe9e0f235e39fc244ee9735e2a52a.tar.gz
kernel-ebbd7f64a3fbe9e0f235e39fc244ee9735e2a52a.zip
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions