diff options
| author | Andrii Nakryiko <[email protected]> | 2019-11-07 02:08:51 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-11-07 15:20:37 +0000 |
| commit | 3dc5e059821376974177cc801d377e3fcdac6712 (patch) | |
| tree | c002484aed94bdf2589426e66b140cdbee7d838a /tools/lib/bpf/bpf_prog_linfo.c | |
| parent | libbpf: Fix negative FD close() in xsk_setup_xdp_prog() (diff) | |
| download | kernel-3dc5e059821376974177cc801d377e3fcdac6712.tar.gz kernel-3dc5e059821376974177cc801d377e3fcdac6712.zip | |
libbpf: Fix memory leak/double free issue
Coverity scan against Github libbpf code found the issue of not freeing memory and
leaving already freed memory still referenced from bpf_program. Fix it by
re-assigning successfully reallocated memory sooner.
Fixes: 2993e0515bb4 ("tools/bpf: add support to read .BTF.ext sections")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions
