linux/tools
Nikita V. Shirokov 243b4cdab9 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: d29d87f7e6 ("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>
2019-03-08 21:16:36 +01:00
..
accounting
arch
bpf tools: libbpf: add a correctly named define for map iteration 2019-03-01 00:53:45 +01:00
build
cgroup
crypto
firewire
firmware
gpio
hv
iio
include bpf: sync bpf.h to tools and update bpf_helpers.h 2019-03-02 10:48:27 -08:00
kvm/kvm_stat
laptop
leds
lib bpf, libbpf: fixing leak when kernel does not support btf 2019-03-08 21:16:36 +01:00
memory-model
nfsd
objtool
pci
pcmcia
perf tools: libbpf: add a correctly named define for map iteration 2019-03-01 00:53:45 +01:00
power
scripts
spi
testing bpf: fix replace_map_fd_with_map_ptr's ldimm64 second imm field 2019-03-07 08:47:13 -08:00
thermal/tmon
time
usb
virtio
vm
wmi
Makefile