mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
qemu: convert VIR_FREE to g_free in other functions that free their arg
Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d835c0affe
commit
4abf2d5d74
@ -95,7 +95,7 @@ qemuJobFreePrivate(void *opaque)
|
||||
return;
|
||||
|
||||
qemuMigrationParamsFree(priv->migParams);
|
||||
VIR_FREE(priv);
|
||||
g_free(priv);
|
||||
}
|
||||
|
||||
|
||||
|
@ -17677,12 +17677,12 @@ qemuDomainFreeResctrlMonData(virQEMUResctrlMonDataPtr resdata)
|
||||
{
|
||||
size_t i = 0;
|
||||
|
||||
VIR_FREE(resdata->name);
|
||||
VIR_FREE(resdata->vcpus);
|
||||
g_free(resdata->name);
|
||||
g_free(resdata->vcpus);
|
||||
for (i = 0; i < resdata->nstats; i++)
|
||||
virResctrlMonitorStatsFree(resdata->stats[i]);
|
||||
VIR_FREE(resdata->stats);
|
||||
VIR_FREE(resdata);
|
||||
g_free(resdata->stats);
|
||||
g_free(resdata);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user