mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-31 00:45:18 +00:00
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:
parent
238d96b8f1
commit
2e6635bc05
@ -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);
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ bhyveDomainObjPrivateFree(void *data)
|
||||
|
||||
virDomainPCIAddressSetFree(priv->pciaddrs);
|
||||
|
||||
VIR_FREE(priv);
|
||||
g_free(priv);
|
||||
}
|
||||
|
||||
virDomainXMLPrivateDataCallbacks virBhyveDriverPrivateDataCallbacks = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user