mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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:
parent
f202f365d7
commit
553c2ac4a5
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -387,7 +387,7 @@ int virLockManagerFree(virLockManagerPtr lock)
|
||||
|
||||
lock->driver->drvFree(lock);
|
||||
|
||||
VIR_FREE(lock);
|
||||
g_free(lock);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user