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