Explicitly free the array of CPUID entries at the end of the Hyper-V CPUID test, mainly in anticipation of moving management of the array into the main test helper. Cc: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> --- tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c b/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c index 9a0fcc713350..09f9874d7705 100644 --- a/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c +++ b/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c @@ -164,6 +164,7 @@ int main(int argc, char *argv[]) hv_cpuid_entries = kvm_get_supported_hv_cpuid(); test_hv_cpuid(hv_cpuid_entries, kvm_cpu_has(X86_FEATURE_VMX)); + free((void *)hv_cpuid_entries); out: kvm_vm_free(vm); -- 2.47.1.688.g23fc6f90ad-goog