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