mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
libvirtd: replace straggler 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
a699d1d18a
commit
bb6fa828f9
@ -7789,8 +7789,8 @@ virDomainIOThreadInfoFree(virDomainIOThreadInfoPtr info)
|
|||||||
if (!info)
|
if (!info)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
VIR_FREE(info->cpumap);
|
g_free(info->cpumap);
|
||||||
VIR_FREE(info);
|
g_free(info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -12084,10 +12084,10 @@ virDomainStatsRecordListFree(virDomainStatsRecordPtr *stats)
|
|||||||
for (next = stats; *next; next++) {
|
for (next = stats; *next; next++) {
|
||||||
virTypedParamsFree((*next)->params, (*next)->nparams);
|
virTypedParamsFree((*next)->params, (*next)->nparams);
|
||||||
virDomainFree((*next)->dom);
|
virDomainFree((*next)->dom);
|
||||||
VIR_FREE(*next);
|
g_free(*next);
|
||||||
}
|
}
|
||||||
|
|
||||||
VIR_FREE(stats);
|
g_free(stats);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -12281,14 +12281,14 @@ virDomainInterfaceFree(virDomainInterfacePtr iface)
|
|||||||
if (!iface)
|
if (!iface)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
VIR_FREE(iface->name);
|
g_free(iface->name);
|
||||||
VIR_FREE(iface->hwaddr);
|
g_free(iface->hwaddr);
|
||||||
|
|
||||||
for (i = 0; i < iface->naddrs; i++)
|
for (i = 0; i < iface->naddrs; i++)
|
||||||
VIR_FREE(iface->addrs[i].addr);
|
g_free(iface->addrs[i].addr);
|
||||||
VIR_FREE(iface->addrs);
|
g_free(iface->addrs);
|
||||||
|
|
||||||
VIR_FREE(iface);
|
g_free(iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1240,13 +1240,13 @@ virNetworkDHCPLeaseFree(virNetworkDHCPLeasePtr lease)
|
|||||||
{
|
{
|
||||||
if (!lease)
|
if (!lease)
|
||||||
return;
|
return;
|
||||||
VIR_FREE(lease->iface);
|
g_free(lease->iface);
|
||||||
VIR_FREE(lease->mac);
|
g_free(lease->mac);
|
||||||
VIR_FREE(lease->iaid);
|
g_free(lease->iaid);
|
||||||
VIR_FREE(lease->ipaddr);
|
g_free(lease->ipaddr);
|
||||||
VIR_FREE(lease->hostname);
|
g_free(lease->hostname);
|
||||||
VIR_FREE(lease->clientid);
|
g_free(lease->clientid);
|
||||||
VIR_FREE(lease);
|
g_free(lease);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user