libnm/manager: free the error correctly

Fixes: fbb038af5e
This commit is contained in:
Lubomir Rintel 2019-01-21 17:21:35 +01:00
parent 2ff54b8532
commit d7d2dafc1b

View file

@ -1115,7 +1115,7 @@ add_activate_cb (GObject *object,
gpointer user_data)
{
ActivateInfo *info = user_data;
gs_free GError *error = NULL;
gs_free_error GError *error = NULL;
gboolean success;
if (info->activate_type == ACTIVATE_TYPE_ADD_AND_ACTIVATE_CONNECTION) {