On 30/08/2024 02:22, Martin KaFai Lau wrote: > From: Martin KaFai Lau <martin.lau@xxxxxxxxxx> > > The pointer returned by btf_parse_base could be an error pointer. > IS_ERR() check is needed before calling btf_free(base_btf). > > Cc: Alan Maguire <alan.maguire@xxxxxxxxxx> > Fixes: 8646db238997 ("libbpf,bpf: Share BTF relocate-related code with kernel") > Signed-off-by: Martin KaFai Lau <martin.lau@xxxxxxxxxx> Reviewed-by: Alan Maguire <alan.maguire@xxxxxxxxxx> Thanks! Alan