]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/kvm/kvm-run.c
kvm tools: Close the disk images after the guest shuts down
[karo-tx-linux.git] / tools / kvm / kvm-run.c
index bd7691fbb8e01779de9a1dda5f91f9bbd9688e09..8cd003b69a9ac269c3eeee8d5ef312650a4f0f9f 100644 (file)
@@ -617,6 +617,7 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix)
                        exit_code = 1;
        }
 
+       disk_image__close_all(kvm->disks, image_count);
        kvm__delete(kvm);
 
        if (!exit_code)