]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix glob_syms memory leak in bpf_linker
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 24 Nov 2021 00:23:17 +0000 (16:23 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 25 Nov 2021 23:15:02 +0000 (00:15 +0100)
commitc324816a11ed424fdf1d420703acbea8949b42bf
tree094fa644157c8b05f23f092e8b611f4caef9e089
parent81ee5eae05a022b65e462ccd66a706767c8ecb56
libbpf: Fix glob_syms memory leak in bpf_linker

glob_syms array wasn't freed on bpf_link__free(). Fix that.

Fixes: f609280ec255 ("libbpf: Add linker extern resolution support for functions and global variables")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211124002325.1737739-6-andrii@kernel.org
tools/lib/bpf/linker.c