diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2016-05-31 17:04:03 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-06-01 11:55:17 +0200 |
commit | ec53ed2cbaab754ddf1283658b5adfba8134e757 (patch) | |
tree | 3e7c551e62c0a5644824733c48d1a707bf133d3b | |
parent | aae89ab8bbfd2763bf406edf0220b05afc2accc8 (diff) | |
download | NetworkManager-ec53ed2cbaab754ddf1283658b5adfba8134e757.tar.gz |
core: fix some memory leaks
-rw-r--r-- | src/dhcp-manager/nm-dhcp-client.c | 2 | ||||
-rw-r--r-- | src/nm-manager.c | 2 | ||||
-rw-r--r-- | src/nm-policy.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c index 9f66c93144..eab6132b2a 100644 --- a/src/dhcp-manager/nm-dhcp-client.c +++ b/src/dhcp-manager/nm-dhcp-client.c @@ -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); diff --git a/src/nm-manager.c b/src/nm-manager.c index f6a31e3c93..333e47366f 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -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 */ diff --git a/src/nm-policy.c b/src/nm-policy.c index 8f23ce81e3..0c63b1cba6 100644 --- a/src/nm-policy.c +++ b/src/nm-policy.c @@ -915,6 +915,7 @@ block_autoconnect_for_device (NMPolicy *self, NMDevice *device) NM_DEVICE_STATE_REASON_USER_REQUESTED); } } + g_slist_free (connections); } static void |