Commit d0f325c
libbpf: Close fd in bpf_object__reuse_map
pin_fd is dup-ed and assigned in bpf_map__reuse_fd. Close it
in bpf_object__reuse_map after reuse.
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220319030533.3132250-1-hengqi.chen@gmail.com1 parent 1824d8e commit d0f325c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4823 | 4823 | | |
4824 | 4824 | | |
4825 | 4825 | | |
| 4826 | + | |
4826 | 4827 | | |
4827 | | - | |
4828 | 4828 | | |
4829 | 4829 | | |
4830 | 4830 | | |
| |||
0 commit comments