libkvm: x86: fix memleak if ioctl fails
commit5d01efd67f08855a311c866c8fff0b68b5fd0690
authorAmit Shah <amit.shah@redhat.com>
Mon, 13 Jul 2009 08:27:52 +0000 (13 13:57 +0530)
committerAvi Kivity <avi@redhat.com>
Mon, 13 Jul 2009 08:34:27 +0000 (13 11:34 +0300)
tree019a153840e8a27f322168aeb0e75702ba5e8705
parentb0136de5e33a64123392a1e3ffac611e6140b39a
libkvm: x86: fix memleak if ioctl fails

Fix a memleak for when the KVM_SET_CPUID2 ioctl fails. Free the
memory that we allocate to store cpuids.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm/libkvm/libkvm-x86.c