From: "Jan Beulich" Subject: [PATCH] fix a memory leak in: [PATCH] x86: eliminate hard-coded NR_IRQS Date: Wed, 27 May 2009 13:38:27 +0100 Message-ID: <4A1D50630200007800002D30@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I only realized this after submitting the original patch. Signed-off-by: Jan Beulich --- 2009-05-19.orig/xen/common/domain.c 2009-05-27 12:48:48.000000000 = +0200 +++ 2009-05-19/xen/common/domain.c 2009-05-27 12:50:39.000000000 = +0200 @@ -401,6 +401,8 @@ int domain_kill(struct domain *d) domain_pause(d); d->is_dying =3D DOMDYING_dying; spin_barrier(&d->domain_lock); + xfree(d->pirq_mask); + xfree(d->pirq_to_evtchn); evtchn_destroy(d); gnttab_release_mappings(d); /* fallthrough */