aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNikita V. Shirokov <tehnerd@tehnerd.com>2019-03-08 05:18:14 +0000
committerDaniel Borkmann <daniel@iogearbox.net>2019-03-08 21:16:36 +0100
commit243b4cdab981d7004bee56c38e18a29da32ef104 (patch)
tree0a2e293600e43da600aaaccfbcf9fdea971d5870 /net
parentbpf: fix replace_map_fd_with_map_ptr's ldimm64 second imm field (diff)
downloadlinux-dev-243b4cdab981d7004bee56c38e18a29da32ef104.tar.xz
linux-dev-243b4cdab981d7004bee56c38e18a29da32ef104.zip
bpf, libbpf: fixing leak when kernel does not support btf
We could end up in situation when we have object file w/ all btf info, but kernel does not support btf yet. In this situation currently libbpf just set obj->btf to NULL w/o freeing it first. This patch is fixing it by making sure to run btf__free first. Fixes: d29d87f7e612 ("btf: separate btf creation and loading") Signed-off-by: Nikita V. Shirokov <tehnerd@tehnerd.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions