[PATCH openEuler-22.09 v3 154/391] libbpf: Fix memory leak when emitting final btf_ext