[libvirt] [PATCH] Eliminate memory leak in xenUnifiedDomainInfoListFree

Laine Stump laine at laine.org
Thu Jul 29 13:47:53 UTC 2010

From: Laine Stump <laine at redhat.com>

This fixes a leak described in


xenUnifiedDomainInfoList has a pointer to a list of pointers to
xenUnifiedDomain. We were freeing up all the domains, but neglecting
to free the list.

This was found by Paolo Bonzini <pbonzini at redhat.com>.
 src/xen/xen_driver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c
index d121ea4..ddbfa7a 100644
--- a/src/xen/xen_driver.c
+++ b/src/xen/xen_driver.c
@@ -2044,6 +2044,7 @@ xenUnifiedDomainInfoListFree(xenUnifiedDomainInfoListPtr list)
+    VIR_FREE(list->doms);

More information about the libvir-list mailing list