[PATCH openEuler-22.09 v2 339/391] libbpf: Perform map fd cleanup for gen_loader in case of error