mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue