mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-22 05:40:35 +01:00
core,cli: replace wrong pattern for clearing GError
Use gs_free_error instead of gs_free.
This commit is contained in:
parent
6405d17730
commit
65a0208ba0
3 changed files with 4 additions and 4 deletions
|
|
@ -655,7 +655,7 @@ show_general_logging (NmCli *nmc)
|
|||
{
|
||||
gs_free char *level_cache = NULL;
|
||||
gs_free char *domains_cache = NULL;
|
||||
gs_free GError *error = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
const char *fields_str = NULL;
|
||||
GetGeneralLoggingData d = {
|
||||
.level = &level_cache,
|
||||
|
|
|
|||
|
|
@ -580,7 +580,7 @@ constructed (GObject *object)
|
|||
NMHostnameManagerPrivate *priv = NM_HOSTNAME_MANAGER_GET_PRIVATE (self);
|
||||
GDBusProxy *proxy;
|
||||
GVariant *variant;
|
||||
gs_free GError *error = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
|
||||
proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, 0, NULL,
|
||||
HOSTNAMED_SERVICE_NAME, HOSTNAMED_SERVICE_PATH,
|
||||
|
|
|
|||
|
|
@ -1453,7 +1453,7 @@ nm_supplicant_interface_disconnect (NMSupplicantInterface * self)
|
|||
|
||||
/* Cancel all pending calls related to a prior connection attempt */
|
||||
if (priv->assoc_data) {
|
||||
gs_free GError *error = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
|
||||
nm_utils_error_set_cancelled (&error, FALSE, "NMSupplicantInterface");
|
||||
assoc_return (self, error, "abort due to disconnect");
|
||||
|
|
@ -1949,7 +1949,7 @@ dispose (GObject *object)
|
|||
}
|
||||
|
||||
if (priv->assoc_data) {
|
||||
gs_free GError *error = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
|
||||
nm_utils_error_set_cancelled (&error, TRUE, "NMSupplicantInterface");
|
||||
assoc_return (self, error, "cancelled due to dispose of supplicant interface");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue