Re: [PATCH] qemu-kvm: x86: fix memleak if ioctl fails

2009-07-14 Thread Marcelo Tosatti
On Mon, Jul 13, 2009 at 02:18:50PM +0530, Amit Shah wrote: > Fix a memleak when the KVM_SET_CPUID2 ioctl fails. Free the > memory that we allocate to store cpuids. > > Reported-by: Mark McLoughlin > Signed-off-by: Amit Shah > --- > qemu-kvm-x86.c |2 +- > 1 files changed, 1 insertions(+), 1

[PATCH] qemu-kvm: x86: fix memleak if ioctl fails

2009-07-13 Thread Amit Shah
Fix a memleak when the KVM_SET_CPUID2 ioctl fails. Free the memory that we allocate to store cpuids. Reported-by: Mark McLoughlin Signed-off-by: Amit Shah --- qemu-kvm-x86.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index daf60b6..