[PATCH openEuler-22.09 v2 348/391] selftests/bpf: Fix memory leaks in btf_type_c_dump() helper