From: Wei Yongjun Date: Fri, 22 Jan 2010 06:18:47 +0000 (+0800) Subject: KVM: x86: Fix probable memory leak of vcpu->arch.mce_banks X-Git-Tag: v2.6.33-rc6~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36cb93fd6b6bf7e9163a69a8bf20207aed5fea44;p=pandora-kernel.git KVM: x86: Fix probable memory leak of vcpu->arch.mce_banks vcpu->arch.mce_banks is malloc in kvm_arch_vcpu_init(), but never free in any place, this may cause memory leak. So this patch fixed to free it in kvm_arch_vcpu_uninit(). Cc: stable@kernel.org Signed-off-by: Wei Yongjun Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed