Fix leak of ioperm data
commitebfa285b51d709ed28973c07bc2d155918197641
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)
tree5e7dc86ef54e8e3bd7cfe3c9daa64665912fe4bd
parent9c546b65a2b86eb6da12b9bb549c6ede85527436
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>
hw/device-assignment.c
qemu-kvm.c
qemu-kvm.h