[PATCH 5.7 247/376] libbpf: Fix perf_buffer__free() API for sparse allocs