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:
parent
2969eff86a
commit
b97befb6a2
@ -173,9 +173,12 @@ xenapiOpen (virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUS
|
|||||||
VIR_FREE(password);
|
VIR_FREE(password);
|
||||||
|
|
||||||
if (privP != NULL) {
|
if (privP != NULL) {
|
||||||
|
virCapabilitiesFree(privP->caps);
|
||||||
|
|
||||||
if (privP->session != NULL)
|
if (privP->session != NULL)
|
||||||
xenSessionFree(privP->session);
|
xenSessionFree(privP->session);
|
||||||
|
|
||||||
|
VIR_FREE(privP->url);
|
||||||
VIR_FREE(privP);
|
VIR_FREE(privP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user