kvm: qemu: fix leak of ioperm data
commitad41bd39f73e4ed18e857224b61dbc7d3bc34563
authorWeidong Han <weidong.han@intel.com>
Fri, 6 Feb 2009 08:05:52 +0000 (6 16:05 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Feb 2009 10:04:10 +0000 (8 12:04 +0200)
tree17f13f01ab49ad31e941ca19081c10246f23d55c
parent7f27bcde7c5415f43cea2963999fa10fddc96256
kvm: qemu: fix leak of ioperm data

implement kvm_remove_ioperm_data to free ioperm data, and call it
in free_assigned_device to avoid leak.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu/hw/device-assignment.c
qemu/qemu-kvm.c
qemu/qemu-kvm.h