[PATCH 5.15 466/846] selftests/bpf: Fix memory leaks in btf_type_c_dump() helper