]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix memory leak in strset
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 1 Oct 2021 18:59:10 +0000 (11:59 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Oct 2021 20:54:38 +0000 (22:54 +0200)
commitde2be300ff1660968da0dbad3a4d79e2726a207f
treea1183b6c5ce4e6f0b520a2e5e23acd7623382084
parent5850687e55a0453a3ae13bfadcd5e57e62978a40
libbpf: Fix memory leak in strset

Free struct strset itself, not just its internal parts.

Fixes: 5822c6770242 ("libbpf: Extract internal set-of-strings datastructure APIs")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20211001185910.86492-1-andrii@kernel.org
tools/lib/bpf/strset.c