mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 09:20:20 +01:00
core: fix some memory leaks
This commit is contained in:
parent
aae89ab8bb
commit
ec53ed2cba
3 changed files with 4 additions and 1 deletions
|
|
@ -882,7 +882,9 @@ dispose (GObject *object)
|
|||
|
||||
g_clear_pointer (&priv->iface, g_free);
|
||||
g_clear_pointer (&priv->hostname, g_free);
|
||||
g_clear_pointer (&priv->fqdn, g_free);
|
||||
g_clear_pointer (&priv->uuid, g_free);
|
||||
g_clear_pointer (&priv->client_id, g_bytes_unref);
|
||||
|
||||
if (priv->hwaddr) {
|
||||
g_byte_array_free (priv->hwaddr, TRUE);
|
||||
|
|
|
|||
|
|
@ -3247,7 +3247,7 @@ validate_activation_request (NMManager *self,
|
|||
NM_MANAGER_ERROR,
|
||||
NM_MANAGER_ERROR_CONNECTION_NOT_AVAILABLE,
|
||||
"Sharing IPv6 connections is not supported yet.");
|
||||
return NULL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* Check whether it's a VPN or not */
|
||||
|
|
|
|||
|
|
@ -915,6 +915,7 @@ block_autoconnect_for_device (NMPolicy *self, NMDevice *device)
|
|||
NM_DEVICE_STATE_REASON_USER_REQUESTED);
|
||||
}
|
||||
}
|
||||
g_slist_free (connections);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue