From 2e6635bc05a435fd93b5a7e30f5cfd329b2814b0 Mon Sep 17 00:00:00 2001 From: Laine Stump Date: Wed, 3 Feb 2021 14:55:29 -0500 Subject: [PATCH] bhyve: replace VIR_FREE with g_free in all vir*Free() functions Signed-off-by: Laine Stump Reviewed-by: Daniel Henrique Barboza --- 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 = {