manager: fix a couple of memory leaks

Fixes: 4dbaac4ba2
Fixes: d8e1590c50
This commit is contained in:
Beniamino Galvani 2016-01-21 18:16:01 +01:00
parent e1f395834a
commit a4492f4145

View file

@ -1025,7 +1025,8 @@ system_create_virtual_device (NMManager *self, NMConnection *connection)
{ {
NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (self); NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (self);
NMDeviceFactory *factory; NMDeviceFactory *factory;
GSList *connections, *iter; gs_free_slist GSList *connections = NULL;
GSList *iter;
gs_free char *iface = NULL; gs_free char *iface = NULL;
NMDevice *device = NULL, *parent = NULL; NMDevice *device = NULL, *parent = NULL;
GError *error = NULL; GError *error = NULL;
@ -1137,6 +1138,8 @@ retry_connections_for_parent_device (NMManager *self, NMDevice *device)
if (parent == device) if (parent == device)
connection_changed (priv->settings, candidate, self); connection_changed (priv->settings, candidate, self);
} }
g_slist_free (connections);
} }
static void static void