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:
Laine Stump 2021-02-09 12:26:30 -05:00
parent d835c0affe
commit 4abf2d5d74
2 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@ qemuJobFreePrivate(void *opaque)
return;
qemuMigrationParamsFree(priv->migParams);
VIR_FREE(priv);
g_free(priv);
}

View File

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