bhyve: replace VIR_FREE with g_free in all vir*Free() functions

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
Laine Stump 2021-02-03 14:55:29 -05:00
parent 238d96b8f1
commit 2e6635bc05
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -50,7 +50,7 @@ bhyveDomainObjPrivateFree(void *data)
virDomainPCIAddressSetFree(priv->pciaddrs);
VIR_FREE(priv);
g_free(priv);
}
virDomainXMLPrivateDataCallbacks virBhyveDriverPrivateDataCallbacks = {