manager: fix clearing error variable in autoconnect_slaves()

This commit is contained in:
Thomas Haller 2017-02-24 12:31:20 +01:00
parent 405ee7cad0
commit dcd7a45a5f

View file

@ -2920,7 +2920,7 @@ autoconnect_slaves (NMManager *self,
&local_err);
if (local_err) {
_LOGW (LOGD_CORE, "Slave connection activation failed: %s", local_err->message);
g_error_free (local_err);
g_clear_error (&local_err);
}
}
g_slist_free (slaves);