virtio-balloon: Add exit handler, fix memleaks
authorAmit Shah <amit.shah@redhat.com>
Wed, 27 Jul 2011 08:20:41 +0000 (13:50 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 4 Aug 2011 21:43:10 +0000 (16:43 -0500)
commit816e52577c0184ac1cb843655dfc78bff6b002de
tree5cb9ed7119f6c4413995ccce2eac9e0d3e65d091
parentee58fe5303d47a773db08c0a019819cad7af6174
virtio-balloon: Add exit handler, fix memleaks

Add an exit handler that will free up RAM after a virtio-balloon device
is unplugged.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-balloon.c
hw/virtio-pci.c
hw/virtio.h