[libvirt PATCH v2 03/24] bhyve: 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/bhyve/bhyve_conf.c   | 6 +++---
 src/bhyve/bhyve_domain.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bhyve/bhyve_conf.c b/src/bhyve/bhyve_conf.c
index f3e2ebf7c7..9012eb8b5f 100644
--- a/src/bhyve/bhyve_conf.c
+++ b/src/bhyve/bhyve_conf.c
@@ -109,8 +109,8 @@ bhyveDomainCmdlineDefFree(bhyveDomainCmdlineDefPtr def)
         return;
 
     for (i = 0; i < def->num_args; i++)
-        VIR_FREE(def->args[i]);
+        g_free(def->args[i]);
 
-    VIR_FREE(def->args);
-    VIR_FREE(def);
+    g_free(def->args);
+    g_free(def);
 }
diff --git a/src/bhyve/bhyve_domain.c b/src/bhyve/bhyve_domain.c
index f0e553113f..1d99ba6c96 100644
--- a/src/bhyve/bhyve_domain.c
+++ b/src/bhyve/bhyve_domain.c
@@ -50,7 +50,7 @@ bhyveDomainObjPrivateFree(void *data)
 
     virDomainPCIAddressSetFree(priv->pciaddrs);
 
-    VIR_FREE(priv);
+    g_free(priv);
 }
 
 virDomainXMLPrivateDataCallbacks virBhyveDriverPrivateDataCallbacks = {
-- 
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