]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Free memory and FDs on exit
authorSasha Levin <levinsasha928@gmail.com>
Wed, 6 Apr 2011 16:07:43 +0000 (19:07 +0300)
committerPekka Enberg <penberg@kernel.org>
Wed, 6 Apr 2011 16:44:47 +0000 (19:44 +0300)
commit18c4073b38a7a3b306d8c4e30f9edd0e0c729ea1
tree05fc7a33ae03630da8a2527efe92338d7dd601a9
parent44faebde7eb37b9e19bcf17e56237fb66488bbab
kvm tools: Free memory and FDs on exit

Following patch adds more cleanup code when exiting.
Close disk image, free msrs array and destroy the timer fd.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/kvm.h
tools/kvm/kvm.c
tools/kvm/main.c