1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-26 03:21:44 +03:00

logging: 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:07 -05:00
parent 553c2ac4a5
commit eee35f0f93
4 changed files with 9 additions and 9 deletions

View File

@ -89,7 +89,7 @@ virLogDaemonFree(virLogDaemonPtr logd)
g_mutex_clear(&logd->lock);
virObjectUnref(logd->dmn);
VIR_FREE(logd);
g_free(logd);
}
@ -314,7 +314,7 @@ virLogDaemonClientFree(void *opaque)
(unsigned long long)priv->clientPid);
g_mutex_clear(&priv->lock);
VIR_FREE(priv);
g_free(priv);
}

View File

@ -74,10 +74,10 @@ virLogDaemonConfigFree(virLogDaemonConfigPtr 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

@ -98,9 +98,9 @@ virLogHandlerLogFileFree(virLogHandlerLogFilePtr file)
if (file->watch != -1)
virEventRemoveHandle(file->watch);
VIR_FREE(file->driver);
VIR_FREE(file->domname);
VIR_FREE(file);
g_free(file->driver);
g_free(file->domname);
g_free(file);
}

View File

@ -137,7 +137,7 @@ virLogManagerFree(virLogManagerPtr mgr)
virObjectUnref(mgr->program);
virObjectUnref(mgr->client);
VIR_FREE(mgr);
g_free(mgr);
}