Jan Beulich
2009-May-27 12:38 UTC
[Xen-devel] [PATCH] fix a memory leak in: [PATCH] x86: eliminate hard-coded NR_IRQS
I only realized this after submitting the original patch. Signed-off-by: Jan Beulich <jbeulich@novell.com> --- 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 = DOMDYING_dying; spin_barrier(&d->domain_lock); + xfree(d->pirq_mask); + xfree(d->pirq_to_evtchn); evtchn_destroy(d); gnttab_release_mappings(d); /* fallthrough */ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel