mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
Eliminate memory leak in xenUnifiedDomainInfoListFree
This fixes a leak described in https://bugzilla.redhat.com/show_bug.cgi?id=590073 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@redhat.com>.
This commit is contained in:
parent
b611a3fb47
commit
1999e4f8f8
@ -2044,6 +2044,7 @@ xenUnifiedDomainInfoListFree(xenUnifiedDomainInfoListPtr list)
|
|||||||
VIR_FREE(list->doms[i]->name);
|
VIR_FREE(list->doms[i]->name);
|
||||||
VIR_FREE(list->doms[i]);
|
VIR_FREE(list->doms[i]);
|
||||||
}
|
}
|
||||||
|
VIR_FREE(list->doms);
|
||||||
VIR_FREE(list);
|
VIR_FREE(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user