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

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

 



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);
     }
 
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]