Re: [PATCH bpf-next] libbpf: fix memory leak when emitting final btf_ext

2021-03-30 Thread Alexei Starovoitov
On 3/26/21 9:25 PM, Andrii Nakryiko wrote: Free temporary allocated memory used to construct finalized .BTF.ext data. Found by Coverity static analysis on libbpf's Github repo. Fixes: 8fd27bf69b86 ("libbpf: Add BPF static linker BTF and BTF.ext support") Signed-off-by: Andrii Nakryiko Applied.

Re: [PATCH bpf-next] libbpf: fix memory leak when emitting final btf_ext

2021-03-29 Thread Song Liu
On Fri, Mar 26, 2021 at 9:35 PM Andrii Nakryiko wrote: > > Free temporary allocated memory used to construct finalized .BTF.ext data. > Found by Coverity static analysis on libbpf's Github repo. > > Fixes: 8fd27bf69b86 ("libbpf: Add BPF static linker BTF and BTF.ext support") > Signed-off-by: Andr

[PATCH bpf-next] libbpf: fix memory leak when emitting final btf_ext

2021-03-26 Thread Andrii Nakryiko
Free temporary allocated memory used to construct finalized .BTF.ext data. Found by Coverity static analysis on libbpf's Github repo. Fixes: 8fd27bf69b86 ("libbpf: Add BPF static linker BTF and BTF.ext support") Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/linker.c | 24 -