mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 23:37:42 +00:00
Fix memleak if esxOpen fails
* src/esx/esx_driver.c: if esxOpen failed, priv->transport wasn't freed
This commit is contained in:
parent
a7c76142a0
commit
5f48643e0a
@ -298,6 +298,7 @@ esxOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUSED)
|
|||||||
esxVI_Context_Free(&priv->host);
|
esxVI_Context_Free(&priv->host);
|
||||||
esxVI_Context_Free(&priv->vcenter);
|
esxVI_Context_Free(&priv->vcenter);
|
||||||
|
|
||||||
|
VIR_FREE(priv->transport);
|
||||||
VIR_FREE(priv);
|
VIR_FREE(priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user