mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
storage: 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
05332bb866
commit
a699d1d18a
@ -551,10 +551,10 @@ virStoragePoolDefFSNamespaceFree(void *nsdata)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; i < cmdopts->noptions; i++)
|
for (i = 0; i < cmdopts->noptions; i++)
|
||||||
VIR_FREE(cmdopts->options[i]);
|
g_free(cmdopts->options[i]);
|
||||||
VIR_FREE(cmdopts->options);
|
g_free(cmdopts->options);
|
||||||
|
|
||||||
VIR_FREE(cmdopts);
|
g_free(cmdopts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,13 +68,13 @@ virStoragePoolDefRBDNamespaceFree(void *nsdata)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; i < cmdopts->noptions; i++) {
|
for (i = 0; i < cmdopts->noptions; i++) {
|
||||||
VIR_FREE(cmdopts->names[i]);
|
g_free(cmdopts->names[i]);
|
||||||
VIR_FREE(cmdopts->values[i]);
|
g_free(cmdopts->values[i]);
|
||||||
}
|
}
|
||||||
VIR_FREE(cmdopts->names);
|
g_free(cmdopts->names);
|
||||||
VIR_FREE(cmdopts->values);
|
g_free(cmdopts->values);
|
||||||
|
|
||||||
VIR_FREE(cmdopts);
|
g_free(cmdopts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -95,8 +95,8 @@ virStoragePoolFCRefreshDataFree(void *opaque)
|
|||||||
{
|
{
|
||||||
virStoragePoolFCRefreshInfoPtr cbdata = opaque;
|
virStoragePoolFCRefreshInfoPtr cbdata = opaque;
|
||||||
|
|
||||||
VIR_FREE(cbdata->fchost_name);
|
g_free(cbdata->fchost_name);
|
||||||
VIR_FREE(cbdata);
|
g_free(cbdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2268,8 +2268,8 @@ virStorageVolPoolRefreshDataFree(void *opaque)
|
|||||||
{
|
{
|
||||||
virStorageVolStreamInfoPtr cbdata = opaque;
|
virStorageVolStreamInfoPtr cbdata = opaque;
|
||||||
|
|
||||||
VIR_FREE(cbdata->pool_name);
|
g_free(cbdata->pool_name);
|
||||||
VIR_FREE(cbdata);
|
g_free(cbdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user