Re: [PATCH bpf-next] libbpf: fix memory leak and optimize BTF sanitization

2020-07-10 Thread Daniel Borkmann
On 7/10/20 3:10 AM, Andrii Nakryiko wrote: Coverity's static analysis helpfully reported a memory leak introduced by 0f0e55d8247c ("libbpf: Improve BTF sanitization handling"). While fixing it, I realized that btf__new() already creates a memory copy, so there is no need to do this. So this patch

[PATCH bpf-next] libbpf: fix memory leak and optimize BTF sanitization

2020-07-09 Thread Andrii Nakryiko
Coverity's static analysis helpfully reported a memory leak introduced by 0f0e55d8247c ("libbpf: Improve BTF sanitization handling"). While fixing it, I realized that btf__new() already creates a memory copy, so there is no need to do this. So this patch also fixes misleading btf__new() signature t