mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
remote: 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
eee35f0f93
commit
a37805eab0
@ -173,53 +173,53 @@ daemonConfigFree(struct daemonConfig *data)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef WITH_IP
|
#ifdef WITH_IP
|
||||||
VIR_FREE(data->listen_addr);
|
g_free(data->listen_addr);
|
||||||
VIR_FREE(data->tls_port);
|
g_free(data->tls_port);
|
||||||
VIR_FREE(data->tcp_port);
|
g_free(data->tcp_port);
|
||||||
#endif /* ! WITH_IP */
|
#endif /* ! WITH_IP */
|
||||||
|
|
||||||
tmp = data->access_drivers;
|
tmp = data->access_drivers;
|
||||||
while (tmp && *tmp) {
|
while (tmp && *tmp) {
|
||||||
VIR_FREE(*tmp);
|
g_free(*tmp);
|
||||||
tmp++;
|
tmp++;
|
||||||
}
|
}
|
||||||
VIR_FREE(data->access_drivers);
|
g_free(data->access_drivers);
|
||||||
|
|
||||||
VIR_FREE(data->unix_sock_admin_perms);
|
g_free(data->unix_sock_admin_perms);
|
||||||
VIR_FREE(data->unix_sock_ro_perms);
|
g_free(data->unix_sock_ro_perms);
|
||||||
VIR_FREE(data->unix_sock_rw_perms);
|
g_free(data->unix_sock_rw_perms);
|
||||||
VIR_FREE(data->unix_sock_group);
|
g_free(data->unix_sock_group);
|
||||||
VIR_FREE(data->unix_sock_dir);
|
g_free(data->unix_sock_dir);
|
||||||
|
|
||||||
tmp = data->sasl_allowed_username_list;
|
tmp = data->sasl_allowed_username_list;
|
||||||
while (tmp && *tmp) {
|
while (tmp && *tmp) {
|
||||||
VIR_FREE(*tmp);
|
g_free(*tmp);
|
||||||
tmp++;
|
tmp++;
|
||||||
}
|
}
|
||||||
VIR_FREE(data->sasl_allowed_username_list);
|
g_free(data->sasl_allowed_username_list);
|
||||||
|
|
||||||
#ifdef WITH_IP
|
#ifdef WITH_IP
|
||||||
tmp = data->tls_allowed_dn_list;
|
tmp = data->tls_allowed_dn_list;
|
||||||
while (tmp && *tmp) {
|
while (tmp && *tmp) {
|
||||||
VIR_FREE(*tmp);
|
g_free(*tmp);
|
||||||
tmp++;
|
tmp++;
|
||||||
}
|
}
|
||||||
VIR_FREE(data->tls_allowed_dn_list);
|
g_free(data->tls_allowed_dn_list);
|
||||||
|
|
||||||
VIR_FREE(data->tls_priority);
|
g_free(data->tls_priority);
|
||||||
|
|
||||||
VIR_FREE(data->key_file);
|
g_free(data->key_file);
|
||||||
VIR_FREE(data->ca_file);
|
g_free(data->ca_file);
|
||||||
VIR_FREE(data->cert_file);
|
g_free(data->cert_file);
|
||||||
VIR_FREE(data->crl_file);
|
g_free(data->crl_file);
|
||||||
#endif /* ! WITH_IP */
|
#endif /* ! WITH_IP */
|
||||||
|
|
||||||
VIR_FREE(data->host_uuid);
|
g_free(data->host_uuid);
|
||||||
VIR_FREE(data->host_uuid_source);
|
g_free(data->host_uuid_source);
|
||||||
VIR_FREE(data->log_filters);
|
g_free(data->log_filters);
|
||||||
VIR_FREE(data->log_outputs);
|
g_free(data->log_outputs);
|
||||||
|
|
||||||
VIR_FREE(data);
|
g_free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -150,7 +150,7 @@ remoteEventCallbackFree(void *opaque)
|
|||||||
return;
|
return;
|
||||||
virObjectUnref(callback->program);
|
virObjectUnref(callback->program);
|
||||||
virObjectUnref(callback->client);
|
virObjectUnref(callback->client);
|
||||||
VIR_FREE(callback);
|
g_free(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1742,7 +1742,7 @@ void remoteClientFree(void *data)
|
|||||||
if (priv->storageConn)
|
if (priv->storageConn)
|
||||||
virConnectClose(priv->storageConn);
|
virConnectClose(priv->storageConn);
|
||||||
|
|
||||||
VIR_FREE(priv);
|
g_free(priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -5614,7 +5614,7 @@ static void remoteStreamCallbackFree(void *opaque)
|
|||||||
(cbdata->ff)(cbdata->opaque);
|
(cbdata->ff)(cbdata->opaque);
|
||||||
|
|
||||||
virObjectUnref(cbdata->st);
|
virObjectUnref(cbdata->st);
|
||||||
VIR_FREE(opaque);
|
g_free(opaque);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user