core: fix some memory leaks

This commit is contained in:
Beniamino Galvani 2016-05-31 17:04:03 +02:00
parent aae89ab8bb
commit ec53ed2cba
3 changed files with 4 additions and 1 deletions

View file

@ -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);

View file

@ -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 */

View file

@ -915,6 +915,7 @@ block_autoconnect_for_device (NMPolicy *self, NMDevice *device)
NM_DEVICE_STATE_REASON_USER_REQUESTED);
}
}
g_slist_free (connections);
}
static void