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