mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 23:58:24 +02:00
manager: fix a couple of memory leaks
Fixes:4dbaac4ba2Fixes:d8e1590c50
This commit is contained in:
parent
e1f395834a
commit
a4492f4145
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue