[libvirt PATCH 04/21] libxl: replace VIR_FREE with g_free in all vir*Free() functions

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

 



Signed-off-by: Laine Stump <laine@xxxxxxxxxx>
---
 src/libxl/libxl_domain.c    | 2 +-
 src/libxl/libxl_driver.c    | 2 +-
 src/libxl/libxl_migration.c | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c
index 380f7e0b56..3bcd369d12 100644
--- a/src/libxl/libxl_domain.c
+++ b/src/libxl/libxl_domain.c
@@ -239,7 +239,7 @@ libxlDomainObjPrivateFree(void *data)
 {
     libxlDomainObjPrivatePtr priv = data;
 
-    VIR_FREE(priv->lockState);
+    g_free(priv->lockState);
     virObjectUnref(priv);
 }
 
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index f480f8067e..2e002b2930 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -127,7 +127,7 @@ libxlDomainManagedSaveLoad(virDomainObjPtr vm,
 static void
 libxlOSEventHookInfoFree(void *obj)
 {
-    VIR_FREE(obj);
+    g_free(obj);
 }
 
 static void
diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c
index 2925aaaa6d..72b6cb32cb 100644
--- a/src/libxl/libxl_migration.c
+++ b/src/libxl/libxl_migration.c
@@ -82,9 +82,9 @@ libxlMigrationCookieFree(libxlMigrationCookiePtr mig)
     if (!mig)
         return;
 
-    VIR_FREE(mig->srcHostname);
-    VIR_FREE(mig->name);
-    VIR_FREE(mig);
+    g_free(mig->srcHostname);
+    g_free(mig->name);
+    g_free(mig);
 }
 
 static libxlMigrationCookiePtr
-- 
2.29.2




[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]

  Powered by Linux