[PATCH openEuler-22.09 159/379] libbpf: Fix memory leak when emitting final btf_ext