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