From: Sean Christopherson Date: Tue, 11 Jul 2023 23:01:28 +0000 (-0700) Subject: KVM: selftests: Explicitly free vcpus array in binary stats test X-Git-Tag: v6.6.17~4248^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33b02704071b0972a62ec32516847f91cab6cb8f;p=platform%2Fkernel%2Flinux-rpi.git KVM: selftests: Explicitly free vcpus array in binary stats test Explicitly free the all-encompassing vcpus array in the binary stats test so that the test is consistent with respect to freeing all dynamically allocated resources (versus letting them be freed on exit). Signed-off-by: Sean Christopherson Message-Id: <20230711230131.648752-5-seanjc@google.com> Signed-off-by: Paolo Bonzini --- diff --git a/tools/testing/selftests/kvm/kvm_binary_stats_test.c b/tools/testing/selftests/kvm/kvm_binary_stats_test.c index f026637..874fa50 100644 --- a/tools/testing/selftests/kvm/kvm_binary_stats_test.c +++ b/tools/testing/selftests/kvm/kvm_binary_stats_test.c @@ -236,6 +236,7 @@ int main(int argc, char *argv[]) for (i = 0; i < max_vm; ++i) kvm_vm_free(vms[i]); free(vms); + free(vcpus); ksft_finished(); /* Print results and exit() accordingly */ }