[PATCH openEuler-22.09 341/379] selftests/bpf: Fix memory leaks in btf_type_c_dump() helper