mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
test_driver: replace 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
674719afe6
commit
5b31dec63d
@ -198,8 +198,8 @@ testDomainDefNamespaceFree(void *data)
|
|||||||
for (i = 0; i < nsdata->num_snap_nodes; i++)
|
for (i = 0; i < nsdata->num_snap_nodes; i++)
|
||||||
xmlFreeNode(nsdata->snap_nodes[i]);
|
xmlFreeNode(nsdata->snap_nodes[i]);
|
||||||
|
|
||||||
VIR_FREE(nsdata->snap_nodes);
|
g_free(nsdata->snap_nodes);
|
||||||
VIR_FREE(nsdata);
|
g_free(nsdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -428,7 +428,7 @@ static void
|
|||||||
testDomainObjPrivateFree(void *data)
|
testDomainObjPrivateFree(void *data)
|
||||||
{
|
{
|
||||||
testDomainObjPrivatePtr priv = data;
|
testDomainObjPrivatePtr priv = data;
|
||||||
VIR_FREE(priv);
|
g_free(priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user