mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 07:38:20 +02:00
core,cli: replace wrong pattern for clearing GError
Use gs_free_error instead of gs_free. (cherry picked from commit65a0208ba0) (cherry picked from commit10ccdf4b81)
This commit is contained in:
parent
14b65ec28d
commit
af4c406cea
1 changed files with 2 additions and 2 deletions
|
|
@ -1126,7 +1126,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");
|
||||
|
|
@ -1603,7 +1603,7 @@ dispose (GObject *object)
|
|||
NMSupplicantInterfacePrivate *priv = NM_SUPPLICANT_INTERFACE_GET_PRIVATE (self);
|
||||
|
||||
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