Fix memleak if esxOpen fails

* src/esx/esx_driver.c: if esxOpen failed, priv->transport wasn't freed
This commit is contained in:
Matthias Bolte 2009-08-06 15:09:40 +02:00 committed by Daniel Veillard
parent a7c76142a0
commit 5f48643e0a

View File

@ -298,6 +298,7 @@ esxOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUSED)
esxVI_Context_Free(&priv->host);
esxVI_Context_Free(&priv->vcenter);
VIR_FREE(priv->transport);
VIR_FREE(priv);
}