diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-11-07 08:55:14 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-11-07 09:14:15 -0800 |
commit | 8f7b239ea8cfdc8e64c875ee417fed41431a1f37 (patch) | |
tree | d657618b2e32fd4559e0563a05e32c6665a0dd55 /tools/testing/selftests/bpf/prog_tests/bpf_iter.c | |
parent | 2a2cb45b727b7a1041f3d3d93414b774e66454bb (diff) | |
download | linux-8f7b239ea8cfdc8e64c875ee417fed41431a1f37.tar.gz linux-8f7b239ea8cfdc8e64c875ee417fed41431a1f37.tar.bz2 linux-8f7b239ea8cfdc8e64c875ee417fed41431a1f37.zip |
libbpf: Free up resources used by inner map definition
It's not enough to just free(map->inner_map), as inner_map itself can
have extra memory allocated, like map name.
Fixes: 646f02ffdd49 ("libbpf: Add BTF-defined map-in-map support")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Hengqi Chen <hengqi.chen@gmail.com>
Link: https://lore.kernel.org/bpf/20211107165521.9240-3-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/bpf_iter.c')
0 files changed, 0 insertions, 0 deletions