[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] VMware ESX 2/3: Fix memleak if esxOpen fails



Subject says it all.

Matthias
diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c
index 8b8575c..49fdf00 100644
--- a/src/esx/esx_driver.c
+++ b/src/esx/esx_driver.c
@@ -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);
     }
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]