summaryrefslogtreecommitdiff
path: root/kvm_x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'kvm_x86.c')
-rw-r--r--kvm_x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvm_x86.c b/kvm_x86.c
index 9812d24..04dba65 100644
--- a/kvm_x86.c
+++ b/kvm_x86.c
@@ -4966,6 +4966,7 @@ void
kvm_arch_destroy_vm_comps(struct kvm *kvmp)
{
if (kvmp == NULL)
+ return;
kvm_free_pit(kvmp);
kvm_free_vcpus(kvmp);