locking: 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:
Laine Stump 2021-02-03 14:37:59 -05:00
parent f202f365d7
commit 553c2ac4a5
5 changed files with 15 additions and 15 deletions

View File

@ -92,7 +92,7 @@ virLockDaemonFree(virLockDaemonPtr lockd)
virHashFree(lockd->lockspaces);
virLockSpaceFree(lockd->defaultLockspace);
VIR_FREE(lockd);
g_free(lockd);
}
static inline void
@ -435,8 +435,8 @@ virLockDaemonClientFree(void *opaque)
}
g_mutex_clear(&priv->lock);
VIR_FREE(priv->ownerName);
VIR_FREE(priv);
g_free(priv->ownerName);
g_free(priv);
}

View File

@ -71,10 +71,10 @@ virLockDaemonConfigFree(virLockDaemonConfigPtr data)
if (!data)
return;
VIR_FREE(data->log_filters);
VIR_FREE(data->log_outputs);
g_free(data->log_filters);
g_free(data->log_outputs);
VIR_FREE(data);
g_free(data);
}
static int

View File

@ -369,13 +369,13 @@ virLockManagerLockDaemonPrivateFree(virLockManagerLockDaemonPrivatePtr priv)
return;
for (i = 0; i < priv->nresources; i++) {
VIR_FREE(priv->resources[i].lockspace);
VIR_FREE(priv->resources[i].name);
g_free(priv->resources[i].lockspace);
g_free(priv->resources[i].name);
}
VIR_FREE(priv->resources);
g_free(priv->resources);
VIR_FREE(priv->name);
VIR_FREE(priv);
g_free(priv->name);
g_free(priv);
}
static void virLockManagerLockDaemonFree(virLockManagerPtr lock)

View File

@ -513,10 +513,10 @@ static void virLockManagerSanlockFree(virLockManagerPtr lock)
if (!priv)
return;
VIR_FREE(priv->vm_name);
g_free(priv->vm_name);
for (i = 0; i < priv->res_count; i++)
VIR_FREE(priv->res_args[i]);
VIR_FREE(priv);
g_free(priv->res_args[i]);
g_free(priv);
lock->privateData = NULL;
}

View File

@ -387,7 +387,7 @@ int virLockManagerFree(virLockManagerPtr lock)
lock->driver->drvFree(lock);
VIR_FREE(lock);
g_free(lock);
return 0;
}