Subject: Re: [PATCH v2 bpf-next 2/3] libbpf: refactor map creation logic and fix cleanup leak

From: Toke Høiland-Jørgensen <[email-masked]>
Date: Tue, 28 Apr 2020 12:48:19 +0200

Andrii Nakryiko <[email-masked]> writes:

> Factor out map creation and destruction logic to simplify code and especially
> error handling. Also fix map FD leak in case of partially successful map
> creation during bpf_object load operation.
>
> Cc: Toke Høiland-Jørgensen <[email-masked]>
> Fixes: 57a00f41644f ("libbpf: Add auto-pinning of maps when loading BPF objects")
> Signed-off-by: Andrii Nakryiko <[email-masked]>

Good catch on the fd leak!

Acked-by: Toke Høiland-Jørgensen <[email-masked]>