On 03/08/2019 06:18 AM, Nikita V. Shirokov wrote: > 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 if fixing it by making sure to run btf__free first > > v2->v3: > - adding "Fixes" tag > > v1->v2: > - adding netdev to cc > > Fixes: 8a138aed4a80 ("bpf: btf: Add BTF support to libbpf") > Signed-off-by: Nikita V. Shirokov <tehn...@tehnerd.com>
Applied, thanks!