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:
Laine Stump 2021-02-03 14:58:38 -05:00
parent a699d1d18a
commit bb6fa828f9
2 changed files with 16 additions and 16 deletions

View File

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

View File

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