summaryrefslogtreecommitdiff
path: root/src/supplicant
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2017-06-27 09:29:18 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2017-06-27 09:42:28 +0200
commit65a0208ba0a6ef6faa6120dc537f9b5de6fecfad (patch)
tree9518b17ccb18869621bbe704baef6c79099f6a96 /src/supplicant
parent6405d1773053502a76140c2ee3b7ef51ec432ef1 (diff)
downloadNetworkManager-65a0208ba0a6ef6faa6120dc537f9b5de6fecfad.tar.gz
core,cli: replace wrong pattern for clearing GError
Use gs_free_error instead of gs_free.
Diffstat (limited to 'src/supplicant')
-rw-r--r--src/supplicant/nm-supplicant-interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supplicant/nm-supplicant-interface.c b/src/supplicant/nm-supplicant-interface.c
index a4681297d3..b90975fb21 100644
--- a/src/supplicant/nm-supplicant-interface.c
+++ b/src/supplicant/nm-supplicant-interface.c
@@ -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");