1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

xenapi: Don't leak url and caps in case of error

This commit is contained in:
Matthias Bolte 2010-03-14 21:31:14 +01:00
parent 2969eff86a
commit b97befb6a2

View File

@ -173,9 +173,12 @@ xenapiOpen (virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUS
VIR_FREE(password);
if (privP != NULL) {
virCapabilitiesFree(privP->caps);
if (privP->session != NULL)
xenSessionFree(privP->session);
VIR_FREE(privP->url);
VIR_FREE(privP);
}