From: Keir Fraser Date: Wed, 16 Apr 2008 08:32:45 +0000 (+0100) Subject: x86, hvm: Fix memory leak. X-Git-Tag: 3.3.0-rc1~240^2~56 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=78363767468f7c3cabcc16a74712d6b3f9d15c38;p=xen.git x86, hvm: Fix memory leak. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 97a1aaa17c..3aaf9bf6ce 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -681,6 +681,8 @@ int hvm_vcpu_initialise(struct vcpu *v) void hvm_vcpu_destroy(struct vcpu *v) { + xfree(v->arch.hvm_vcpu.mtrr.var_ranges); + vlapic_destroy(v); hvm_funcs.vcpu_destroy(v);