[PATCH 5.16 0550/1039] selftests/bpf: Fix memory leaks in btf_type_c_dump() helper